From 9504c5c360f5aa443f20008f7e9da7528caab8bf Mon Sep 17 00:00:00 2001 From: Jorropo Date: Thu, 14 Nov 2019 09:03:41 +0100 Subject: [PATCH] rpc: fix typo example code (#20284) --- rpc/doc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/doc.go b/rpc/doc.go index e5840c32d3..c9eaef54f0 100644 --- a/rpc/doc.go +++ b/rpc/doc.go @@ -73,7 +73,7 @@ An example server which uses the JSON codec: calculator := new(CalculatorService) server := NewServer() - server.RegisterName("calculator", calculator") + server.RegisterName("calculator", calculator) l, _ := net.ListenUnix("unix", &net.UnixAddr{Net: "unix", Name: "/tmp/calculator.sock"}) for {