eth, rpc: fix missing parentheses in doc

This commit is contained in:
Cong Zhao 2018-07-22 23:25:01 +08:00
parent 040dd5bd5d
commit fd45ec1f2e

View file

@ -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")
} }