Explorar el Código

rpc: fix missing parentheses in doc (#17224)

cong hace 7 años
padre
commit
8997efe31f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      rpc/doc.go

+ 1 - 1
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")
 	}