aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/gob
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoding/gob')
-rw-r--r--src/encoding/gob/error.go2
-rw-r--r--src/encoding/gob/type.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/encoding/gob/error.go b/src/encoding/gob/error.go
index 3c9515b5ed..9c614e3e3f 100644
--- a/src/encoding/gob/error.go
+++ b/src/encoding/gob/error.go
@@ -24,7 +24,7 @@ func errorf(format string, args ...any) {
error_(fmt.Errorf("gob: "+format, args...))
}
-// error wraps the argument error and uses it as the argument to panic.
+// error_ wraps the argument error and uses it as the argument to panic.
func error_(err error) {
panic(gobError{err})
}
diff --git a/src/encoding/gob/type.go b/src/encoding/gob/type.go
index 9eec08615e..3114cb0f98 100644
--- a/src/encoding/gob/type.go
+++ b/src/encoding/gob/type.go
@@ -38,7 +38,7 @@ const (
var userTypeCache sync.Map // map[reflect.Type]*userTypeInfo
-// validType returns, and saves, the information associated with user-provided type rt.
+// validUserType returns, and saves, the information associated with user-provided type rt.
// If the user type is not valid, err will be non-nil. To be used when the error handler
// is not set up.
func validUserType(rt reflect.Type) (*userTypeInfo, error) {