rpc: fix missing parentheses in doc (#17224)

pull/17223/merge
cong 6 years ago committed by Péter Szilágyi
parent 040dd5bd5d
commit 8997efe31f
  1. 2
      rpc/doc.go

@ -58,7 +58,7 @@ An example server which uses the JSON codec:
return a + b
}
func (s *CalculatorService Div(a, b int) (int, error) {
func (s *CalculatorService) Div(a, b int) (int, error) {
if b == 0 {
return 0, errors.New("divide by zero")
}

Loading…
Cancel
Save