Skip to content

Commit aeab76f

Browse files
cuishuanggopherbot
authored andcommitted
encoding: fix a few function names on comments
Change-Id: I17a311afb94a056b3d35bfa241f5d0d206db602d GitHub-Last-Rev: 4212946 GitHub-Pull-Request: #55962 Reviewed-on: https://go-review.googlesource.com/c/go/+/436882 Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Daniel Martí <[email protected]> Reviewed-by: Keith Randall <[email protected]> Run-TryBot: Daniel Martí <[email protected]> Reviewed-by: Rob Pike <[email protected]>
1 parent 76c1a50 commit aeab76f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: src/encoding/asn1/asn1.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func parseInt64(bytes []byte) (ret int64, err error) {
111111
return
112112
}
113113

114-
// parseInt treats the given bytes as a big-endian, signed integer and returns
114+
// parseInt32 treats the given bytes as a big-endian, signed integer and returns
115115
// the result.
116116
func parseInt32(bytes []byte) (int32, error) {
117117
if err := checkInteger(bytes); err != nil {

Diff for: src/encoding/gob/error.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func errorf(format string, args ...any) {
2424
error_(fmt.Errorf("gob: "+format, args...))
2525
}
2626

27-
// error wraps the argument error and uses it as the argument to panic.
27+
// error_ wraps the argument error and uses it as the argument to panic.
2828
func error_(err error) {
2929
panic(gobError{err})
3030
}

Diff for: src/encoding/gob/type.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const (
3838

3939
var userTypeCache sync.Map // map[reflect.Type]*userTypeInfo
4040

41-
// validType returns, and saves, the information associated with user-provided type rt.
41+
// validUserType returns, and saves, the information associated with user-provided type rt.
4242
// If the user type is not valid, err will be non-nil. To be used when the error handler
4343
// is not set up.
4444
func validUserType(rt reflect.Type) (*userTypeInfo, error) {

0 commit comments

Comments
 (0)