]> Cypherpunks repositories - gostls13.git/commitdiff
net/rpc: correct comment for isExportedOrBuiltinType function
authorjjpinto <jorgpinto@gmail.com>
Sat, 27 Dec 2025 15:18:07 +0000 (15:18 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 2 Jan 2026 18:00:27 +0000 (10:00 -0800)
Change to follow the idiomatic Go doc comment style

Change-Id: I727801903c8fc1a66c8a71ab5455f12219b469d5
GitHub-Last-Rev: dd608c9cb93d2f9d0358607fab6b58913b499709
GitHub-Pull-Request: golang/go#77015
Reviewed-on: https://go-review.googlesource.com/c/go/+/732902
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Rob Pike <r@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/net/rpc/server.go

index 4233a426fefb1fa637d77d267e88800259d40e93..961145c6f237e6f4dffadeda7ae1eb57bf2bdea9 100644 (file)
@@ -202,7 +202,7 @@ func NewServer() *Server {
 // DefaultServer is the default instance of [*Server].
 var DefaultServer = NewServer()
 
-// Is this type exported or a builtin?
+// isExportedOrBuiltinType reports whether t is an exported or builtin type
 func isExportedOrBuiltinType(t reflect.Type) bool {
        for t.Kind() == reflect.Pointer {
                t = t.Elem()