rpc: fix typo example code (#20284)

This commit is contained in:
Jorropo 2019-11-14 09:03:41 +01:00 committed by Péter Szilágyi
parent f8a95d996f
commit 9504c5c360

View File

@ -73,7 +73,7 @@ An example server which uses the JSON codec:
calculator := new(CalculatorService) calculator := new(CalculatorService)
server := NewServer() server := NewServer()
server.RegisterName("calculator", calculator") server.RegisterName("calculator", calculator)
l, _ := net.ListenUnix("unix", &net.UnixAddr{Net: "unix", Name: "/tmp/calculator.sock"}) l, _ := net.ListenUnix("unix", &net.UnixAddr{Net: "unix", Name: "/tmp/calculator.sock"})
for { for {