From: Russ Cox Date: Wed, 26 Oct 2016 20:58:00 +0000 (-0400) Subject: net/rpc: fix method requirement docs X-Git-Tag: go1.8beta1~560 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6c242c52d355772f66466505dd7555d4601f1c5a;p=gostls13.git net/rpc: fix method requirement docs The receiver itself is not transmitted and does not need to be marshalable by encoding/gob. Fixes #16803. Change-Id: I42a3603fb7d3b36c97dcc2e51a398cd65ec3227d Reviewed-on: https://go-review.googlesource.com/32094 Run-TryBot: Russ Cox TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick Reviewed-by: Rob Pike --- diff --git a/src/net/rpc/server.go b/src/net/rpc/server.go index 83d9aac10c..18ea629b0d 100644 --- a/src/net/rpc/server.go +++ b/src/net/rpc/server.go @@ -23,7 +23,7 @@ func (t *T) MethodName(argType T1, replyType *T2) error - where T, T1 and T2 can be marshaled by encoding/gob. + where T1 and T2 can be marshaled by encoding/gob. These requirements apply even if a different codec is used. (In the future, these requirements may soften for custom codecs.)