未验证 提交 d1b524a2 编写于 作者: A astaxie 提交者: GitHub

Merge pull request #930 from DuLinRain/master

Update 02.4.md
......@@ -187,7 +187,7 @@ func main() {
fmt.Println("Her preferred number is", jane.int)
}
```
从上面例子我们看出来struct不仅仅能够将struct作为匿名字段自定义类型、内置类型都可以作为匿名字段,而且可以在相应的字段上面进行函数操作(如例子中的append)。
从上面例子我们看出来struct不仅仅能够将struct作为匿名字段自定义类型、内置类型都可以作为匿名字段,而且可以在相应的字段上面进行函数操作(如例子中的append)。
这里有一个问题:如果human里面有一个字段叫做phone,而student也有一个字段叫做phone,那么该怎么办呢?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册