Remove trailing whitespace, add missing newline

This commit is contained in:
Björn
2012-11-16 14:56:12 +01:00
parent 1e992ab31d
commit 21823e61d8
2 changed files with 24 additions and 23 deletions

View File

@@ -50,7 +50,7 @@ func main() {
// There are also several formatting options for
// floats. For basic decimal formatting use `%f`.
fmt.Printf("%f", 78.9)
fmt.Printf("%f\n", 78.9)
// `%e` and `%E` format the float in (slightly
// different versions of) scientific notation.
@@ -99,7 +99,7 @@ func main() {
// So far we've seen `Printf`, which prints the
// formatted string to `os.Stdout`. `Sprintf` formats
// and returns a string without printing it anywhere.
s := fmt.Sprintf("a %s ", "string")
s := fmt.Sprintf("a %s", "string")
fmt.Println(s)
// You can format+print to `io.Writers` other than