This commit is contained in:
Unknwon
2016-12-28 14:25:31 +08:00
parent 6d0b2ce756
commit cb08e335c6

View File

@@ -81,7 +81,7 @@ func main() {
}
```
变量 `ret` 的值为 2 `ret++`,这是在执行 `reutrn 1` 语句后发生的。
变量 `ret` 的值为 2 `ret++` 是在执行 `reutrn 1` 语句后发生的。
这可用于在返回语句之后修改返回的 `error` 时使用。