Skip to content

Commit 93cb415

Browse files
authored
Fix source comment typos (#1011)
Fixes some misc. source comment typos. Found via: `codespell -L flate`
1 parent 0c528e7 commit 93cb415

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/croc/croc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ On the other computer run:
762762
dataDecrypt, decryptErr = crypt.Decrypt(data, kB)
763763
if decryptErr != nil {
764764
log.Tracef("error decrypting: %v: '%s'", decryptErr, data)
765-
// relay sent a messag encrypted with an invalid key.
765+
// relay sent a message encrypted with an invalid key.
766766
// consider this a security issue and abort
767767
if strings.Contains(decryptErr.Error(), "message authentication failed") {
768768
errchan <- decryptErr

src/mnemonicode/mnemonicode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func WordsRequired(length int) int {
4444

4545
// EncodeWordList encodes src into mnemomic words which are appended to dst.
4646
// The final wordlist is returned.
47-
// There will be WordsRequired(len(src)) words appeneded.
47+
// There will be WordsRequired(len(src)) words appended.
4848
func EncodeWordList(dst []string, src []byte) (result []string) {
4949
if n := len(dst) + WordsRequired(len(src)); cap(dst) < n {
5050
result = make([]string, len(dst), n)

src/utils/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ func LocalIP() string {
281281
return localAddr.IP.String()
282282
}
283283

284-
// GenerateRandomPin returns a randomly generated pin with set lenght
284+
// GenerateRandomPin returns a randomly generated pin with set length
285285
func GenerateRandomPin() string {
286286
s := ""
287287
max := new(big.Int)

0 commit comments

Comments
 (0)