mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
eth, rpc: fix missing parentheses in doc
This commit is contained in:
parent
040dd5bd5d
commit
fd45ec1f2e
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue