mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 03:06:41 +08:00
Update 06.2.md
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
在函数块里面,`return`之后的语句都不会执行。如果一个函数需要返回值,那么这个函数里面的每一个代码分支(code-path)都要有`return`语句。
|
||||
|
||||
问题6.1:下面的函数将不会被编译,为什么呢?大家可以试着纠正过了。
|
||||
问题6.1:下面的函数将不会被编译,为什么呢?大家可以试着纠正过来。
|
||||
|
||||
func (st *Stack) Pop() int {
|
||||
v := 0
|
||||
|
Reference in New Issue
Block a user