diff options
| author | Alberto Donizetti <alb.donizetti@gmail.com> | 2018-11-08 18:38:44 +0100 |
|---|---|---|
| committer | Alberto Donizetti <alb.donizetti@gmail.com> | 2018-11-09 17:14:26 +0000 |
| commit | cc618b7871d4aba6474c796954f8fc07aef01a82 (patch) | |
| tree | b08eb8a803d93085bbfdda39424b857298c84bf5 | |
| parent | 16d3ff4aeb4f07df3cbc2d072b04443a462b2f69 (diff) | |
| download | golang-id-tour-cc618b7871d4aba6474c796954f8fc07aef01a82.tar.xz | |
content: add newline to Printf call in flowcontrol
A missing \n doesn't matter when running the playground in the
browser, but apparently sometimes people copy the tour code snippets
in their editors; and anyway it's probably slightly nicer to be
consistent with the newlines.
Fixes golang/tour#642
Change-Id: I24d048e96620cbdaa668644e1460749cbea66ac5
Reviewed-on: https://go-review.googlesource.com/c/148617
Reviewed-by: Ian Lance Taylor <iant@golang.org>
| -rw-r--r-- | content/flowcontrol/switch.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/flowcontrol/switch.go b/content/flowcontrol/switch.go index 6837671..065db3d 100644 --- a/content/flowcontrol/switch.go +++ b/content/flowcontrol/switch.go @@ -17,6 +17,6 @@ func main() { default: // freebsd, openbsd, // plan9, windows... - fmt.Printf("%s.", os) + fmt.Printf("%s.\n", os) } } |
