We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d632550 commit 8e70671Copy full SHA for 8e70671
gee-rpc/doc/geerpc-day3.md
@@ -80,8 +80,8 @@ func main() {
80
for i := 0; i < typ.NumMethod(); i++ {
81
method := typ.Method(i)
82
argv := make([]string, 0, method.Type.NumIn())
83
- returns := make([]string, 0, method.Type.NumIn())
84
- // j 从 1 开始,第 0 个入参是 wg 自己。
+ returns := make([]string, 0, method.Type.NumOut())
+ // j 从 1 开始,第 0 个入参是 wg 自己。
85
for j := 1; j < method.Type.NumIn(); j++ {
86
argv = append(argv, method.Type.In(j).Name())
87
}
@@ -494,4 +494,4 @@ start rpc server on [::]:57509
494
## 附 推荐阅读
495
496
- [Go 语言简明教程](https://geektutu.com/post/quick-golang.html)
497
-- [Go 语言笔试面试题](https://geektutu.com/post/qa-golang.html)
+- [Go 语言笔试面试题](https://geektutu.com/post/qa-golang.html)
0 commit comments