Commit 0e1da61c authored by Michael Vetter's avatar Michael Vetter Committed by Minux Ma

doc/effective_go.html: add missing newline

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/7480Reviewed-by: default avatarMinux Ma <minux@golang.org>
parent c9089e64
...@@ -866,7 +866,7 @@ var t interface{} ...@@ -866,7 +866,7 @@ var t interface{}
t = functionOfSomeType() t = functionOfSomeType()
switch t := t.(type) { switch t := t.(type) {
default: 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: case bool:
fmt.Printf("boolean %t\n", t) // t has type bool fmt.Printf("boolean %t\n", t) // t has type bool
case int: case int:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment