Skip to content

Commit 4212946

Browse files
committed
encoding: fix a few function names on comments
Signed-off-by: cui fliter <[email protected]>
1 parent d7dbe01 commit 4212946

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)