Skip to content

Commit abd35ff

Browse files
committed
Merge pull request astaxie#54 from xxuejie/master
修改2.5小节中method语法
2 parents e9e8481 + 9a479f7 commit abd35ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2.5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
3737
method的语法如下:
3838

39-
func (ReceiverType r) funcName(parameters) (results)
39+
func (r ReceiverType) funcName(parameters) (results)
4040

4141
下面我们用最开始的例子用method来实现:
4242

0 commit comments

Comments
 (0)