mirror of
https://github.com/golang/go.git
synced 2026-02-06 19:05:05 +03:00
net/rpc: correct comment for isExportedOrBuiltinType function
Change to follow the idiomatic Go doc comment style
Change-Id: I727801903c8fc1a66c8a71ab5455f12219b469d5
GitHub-Last-Rev: dd608c9cb9
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>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user