diff options
| author | Joe Bowbeer <joe.bowbeer@gmail.com> | 2018-10-12 15:42:04 +0000 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2018-10-12 20:33:48 +0000 |
| commit | 44b8c1d75caea04a0a1feba084b164b0f9fd49eb (patch) | |
| tree | bb607df0d277e55d918d113f4c7306eac037bb17 | |
| parent | 099a0d9cc2550885869179752dfff56fc681295c (diff) | |
| download | golang-id-tour-44b8c1d75caea04a0a1feba084b164b0f9fd49eb.tar.xz | |
content: fix grammar in flowcontrol.article
The lack of agreement in tense between the parallel verbs `execute` (_are executed_) and `return` in this sentence threw me. This simpler construction is more grammatically correct, according to some standards, and less confusing to me.
Change-Id: I6351ce29a684d9b0d18f57b914072c43219401aa
GitHub-Last-Rev: c6f29ca49a4e523c6d2cd2476f66a22fb7448881
GitHub-Pull-Request: golang/tour#629
Reviewed-on: https://go-review.googlesource.com/c/141577
Reviewed-by: Rob Pike <r@golang.org>
| -rw-r--r-- | content/flowcontrol.article | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/flowcontrol.article b/content/flowcontrol.article index 6833604..0f25ab4 100644 --- a/content/flowcontrol.article +++ b/content/flowcontrol.article @@ -66,7 +66,7 @@ Variables declared by the statement are only in scope until the end of the `if`. Variables declared inside an `if` short statement are also available inside any of the `else` blocks. -(Both calls to `pow` are executed and return before the call to `fmt.Println` +(Both calls to `pow` return their results before the call to `fmt.Println` in `main` begins.) .play flowcontrol/if-and-else.go |
