Skip to content

Commit

Permalink
tour: adds additional info RE 'else' command
Browse files Browse the repository at this point in the history
  • Loading branch information
JackMead authored and JackMead committed Oct 10, 2018
1 parent 099a0d9 commit 23596c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/flowcontrol.article
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ of the `else` blocks.
(Both calls to `pow` are executed and return before the call to `fmt.Println`
in `main` begins.)

*Note:* Unlike many other languages, Go insists that the `else` must be placed on the same line as the closing brace from the connected `if` statement.

.play flowcontrol/if-and-else.go

* Exercise: Loops and Functions
Expand Down

0 comments on commit 23596c1

Please sign in to comment.