rpc: fix typo example code (#20284)

pull/20290/head
Jorropo 5 years ago committed by Péter Szilágyi
parent f8a95d996f
commit 9504c5c360
  1. 2
      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 {

Loading…
Cancel
Save