]> Cypherpunks repositories - gostls13.git/commitdiff
doc/effective_go.html: add missing newline
authorMichael Vetter <g.bluehut@gmail.com>
Thu, 12 Mar 2015 14:49:49 +0000 (15:49 +0100)
committerMinux Ma <minux@golang.org>
Thu, 12 Mar 2015 16:31:23 +0000 (16:31 +0000)
When printing the type of the function there was no newline printed in
case of unexpected type.

Change-Id: I5946413f0864f712a1b955f488b436793018e0e0
Reviewed-on: https://go-review.googlesource.com/7480
Reviewed-by: Minux Ma <minux@golang.org>
doc/effective_go.html

index 4dd1a3e017f562788bd6353f2db82f29523dbd01..d6be37994b1fc60f865076d0b635e322a1f399e9 100644 (file)
@@ -866,7 +866,7 @@ var t interface{}
 t = functionOfSomeType()
 switch t := t.(type) {
 default:
-    fmt.Printf("unexpected type %T", t)       // %T prints whatever type t has
+    fmt.Printf("unexpected type %T\n", t)     // %T prints whatever type t has
 case bool:
     fmt.Printf("boolean %t\n", t)             // t has type bool
 case int: