mirror of
https://github.com/golang/go
synced 2024-11-23 04:50:06 -07:00
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 <minux@golang.org>
This commit is contained in:
parent
c9089e64be
commit
0e1da61cfb
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user