Przeglądaj źródła

rpc: fix missing parentheses in doc (#17224)

cong 7 lat temu
rodzic
commit
8997efe31f
1 zmienionych plików z 1 dodań i 1 usunięć
  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")
 	}