Skip to content

Commit 9dacc01

Browse files
chore: fix some comments (#718)
Signed-off-by: wangcundashang <wangcundashang@qq.com>
1 parent a21d610 commit 9dacc01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/cbor/decode_stream.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ func decodeTimeStamp(src *bufio.Reader) []byte {
490490
tsb = append(tsb, '"')
491491
return tsb
492492
}
493-
panic(fmt.Errorf("TS format is neigther int nor float: %d", tsMajor))
493+
panic(fmt.Errorf("TS format is neither int nor float: %d", tsMajor))
494494
}
495495

496496
func decodeSimpleFloat(src *bufio.Reader) []byte {

internal/json/string.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (e Encoder) AppendStringer(dst []byte, val fmt.Stringer) []byte {
8888
return e.AppendString(dst, val.String())
8989
}
9090

91-
//// appendStringComplex is used by appendString to take over an in
91+
// appendStringComplex is used by appendString to take over an in
9292
// progress JSON string encoding that encountered a character that needs
9393
// to be encoded.
9494
func appendStringComplex(dst []byte, s string, i int) []byte {

0 commit comments

Comments
 (0)