Skip to content

Commit

Permalink
rpc: fix typo example code (ethereum#20284)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorropo authored and enriquefynn committed Feb 15, 2021
1 parent 4db1ad7 commit 30ca5f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 30ca5f6

Please sign in to comment.