Parcourir la source

internal/encoding/wire: fix trivial misspelling

Change-Id: I71f1715145ebc58aadec1d5ecb5f1900998f65a0
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/184277
Reviewed-by: Damien Neil <dneil@google.com>
Joe Tsai il y a 6 ans
Parent
commit
9aeddcdcf0
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      internal/encoding/wire/wire.go

+ 1 - 1
internal/encoding/wire/wire.go

@@ -425,7 +425,7 @@ func AppendBytes(b []byte, v []byte) []byte {
 	return append(AppendVarint(b, uint64(len(v))), v...)
 }
 
-// AppendString appends v to b as a lenght-prefixed bytes value.
+// AppendString appends v to b as a length-prefixed bytes value.
 func AppendString(b []byte, v string) []byte {
 	return append(AppendVarint(b, uint64(len(v))), v...)
 }