aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Donizetti <alb.donizetti@gmail.com>2018-11-08 18:38:44 +0100
committerAlberto Donizetti <alb.donizetti@gmail.com>2018-11-09 17:14:26 +0000
commitcc618b7871d4aba6474c796954f8fc07aef01a82 (patch)
treeb08eb8a803d93085bbfdda39424b857298c84bf5
parent16d3ff4aeb4f07df3cbc2d072b04443a462b2f69 (diff)
downloadgolang-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.go2
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)
}
}