mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-11 22:53:43 +08:00
fix typo
This commit is contained in:
@@ -100,7 +100,7 @@ Example 5.3 [string_conversion2.go](examples/chapter_5/string_conversion2.go)
|
||||
|
||||
**注意事项**
|
||||
|
||||
如果您想下面一样,没有为多返回值的函数准备足够的变量来存放结果:
|
||||
如果您像下面一样,没有为多返回值的函数准备足够的变量来存放结果:
|
||||
|
||||
func mySqrt(f float64) (v float64, ok bool) {
|
||||
if f < 0 { return } // error case
|
||||
@@ -138,4 +138,4 @@ Example 5.3 [string_conversion2.go](examples/chapter_5/string_conversion2.go)
|
||||
|
||||
- [目录](directory.md)
|
||||
- 上一节:[if-else 结构](05.1.md)
|
||||
- 下一节:[switch 结构](05.3.md)
|
||||
- 下一节:[switch 结构](05.3.md)
|
||||
|
Reference in New Issue
Block a user