Commit 8997efe3 authored by cong's avatar cong Committed by Péter Szilágyi

rpc: fix missing parentheses in doc (#17224)

parent 040dd5bd
...@@ -58,7 +58,7 @@ An example server which uses the JSON codec: ...@@ -58,7 +58,7 @@ An example server which uses the JSON codec:
return a + b return a + b
} }
func (s *CalculatorService Div(a, b int) (int, error) { func (s *CalculatorService) Div(a, b int) (int, error) {
if b == 0 { if b == 0 {
return 0, errors.New("divide by zero") return 0, errors.New("divide by zero")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment