From 9a479f7920b5ca99fdd7e6fb949340b7b1ffc236 Mon Sep 17 00:00:00 2001 From: Xuejie Xiao Date: Mon, 1 Oct 2012 23:30:24 -0400 Subject: [PATCH] Fix the arg/type order of method signature syntax --- 2.5.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2.5.md b/2.5.md index 6df2405d..7f165cc8 100644 --- a/2.5.md +++ b/2.5.md @@ -36,7 +36,7 @@ method的语法如下: - func (ReceiverType r) funcName(parameters) (results) + func (r ReceiverType) funcName(parameters) (results) 下面我们用最开始的例子用method来实现: