]> Cypherpunks repositories - gostls13.git/commitdiff
encoding: fix a few function names on comments
authorcui fliter <imcusg@gmail.com>
Fri, 30 Sep 2022 06:11:15 +0000 (06:11 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 30 Sep 2022 23:03:07 +0000 (23:03 +0000)
Change-Id: I17a311afb94a056b3d35bfa241f5d0d206db602d
GitHub-Last-Rev: 42129464c9e17fae9b61ea60940e193fcefc5760
GitHub-Pull-Request: golang/go#55962
Reviewed-on: https://go-review.googlesource.com/c/go/+/436882
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Keith Randall <khr@google.com>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Rob Pike <r@golang.org>
src/encoding/asn1/asn1.go
src/encoding/gob/error.go
src/encoding/gob/type.go

index 4408352cff68ffe759857de4a8bd4ec16e69ff1b..6a7aa473a5c0b0d3b81cf2eb892a7fe4e1be99e3 100644 (file)
@@ -111,7 +111,7 @@ func parseInt64(bytes []byte) (ret int64, err error) {
        return
 }
 
-// parseInt treats the given bytes as a big-endian, signed integer and returns
+// parseInt32 treats the given bytes as a big-endian, signed integer and returns
 // the result.
 func parseInt32(bytes []byte) (int32, error) {
        if err := checkInteger(bytes); err != nil {
index 3c9515b5ed6df462c9b175c06bb09b4dd0f79935..9c614e3e3ff255ac279d7e9c77f41f4bffdcea9d 100644 (file)
@@ -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})
 }
index 9eec08615e11c9e3d678dd78bb0addec845e71bb..3114cb0f98af6d3c5db8be712211e649c24c36ea 100644 (file)
@@ -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) {