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>
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 @@
default:
// freebsd, openbsd,
// plan9, windows...
- fmt.Printf("%s.", os)
+ fmt.Printf("%s.\n", os)
}
}