From 0e1da61cfb6bf0ca87569f98b3d5c8893bde4cea Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 12 Mar 2015 15:49:49 +0100 Subject: [PATCH] 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/7480 Reviewed-by: Minux Ma --- doc/effective_go.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/effective_go.html b/doc/effective_go.html index 4dd1a3e017f..d6be37994b1 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -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: