summaryrefslogtreecommitdiffstats
path: root/llgo/third_party/gofrontend/libgo/go/net/rpc/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'llgo/third_party/gofrontend/libgo/go/net/rpc/server.go')
-rw-r--r--llgo/third_party/gofrontend/libgo/go/net/rpc/server.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/llgo/third_party/gofrontend/libgo/go/net/rpc/server.go b/llgo/third_party/gofrontend/libgo/go/net/rpc/server.go
index 83728d55a18..6e6e8819174 100644
--- a/llgo/third_party/gofrontend/libgo/go/net/rpc/server.go
+++ b/llgo/third_party/gofrontend/libgo/go/net/rpc/server.go
@@ -13,6 +13,7 @@
Only methods that satisfy these criteria will be made available for remote access;
other methods will be ignored:
+ - the method's type is exported.
- the method is exported.
- the method has two arguments, both exported (or builtin) types.
- the method's second argument is a pointer.
@@ -216,7 +217,7 @@ func isExportedOrBuiltinType(t reflect.Type) bool {
// Register publishes in the server the set of methods of the
// receiver value that satisfy the following conditions:
-// - exported method
+// - exported method of exported type
// - two arguments, both of exported type
// - the second argument is a pointer
// - one return value, of type error
OpenPOWER on IntegriCloud