mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-04 02:38:50 +00:00
internal/encoding/json: fix comments
Change-Id: Ia1414d1a6c4edcacc141f0c927ad1f9f0012843a Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/285552 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com> Trust: Herbie Ong <herbie@google.com>
This commit is contained in:
parent
160c7477e0
commit
f1ac97a4c3
@ -94,7 +94,7 @@ func (t Token) Pos() int {
|
||||
return t.pos
|
||||
}
|
||||
|
||||
// Name returns the object name if token is Name, else it will return an error.
|
||||
// Name returns the object name if token is Name, else it panics.
|
||||
func (t Token) Name() string {
|
||||
if t.kind == Name {
|
||||
return t.str
|
||||
@ -154,8 +154,7 @@ func (t Token) Int(bitSize int) (int64, bool) {
|
||||
return n, true
|
||||
}
|
||||
|
||||
// Uint returns the signed integer number if token is Number, else it will
|
||||
// return an error.
|
||||
// Uint returns the signed integer number if token is Number.
|
||||
//
|
||||
// The given bitSize specifies the unsigned integer type that the result must
|
||||
// fit into. It returns false if the number is not an unsigned integer value
|
||||
|
Loading…
Reference in New Issue
Block a user