diff --git a/rpc/doc.go b/rpc/doc.go
index e5840c32d3f6375a240e3891563d0c6157e48206..c9eaef54f07f8ffca869d4b05ef901b9f5bc85ac 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 {