1
0
mirror of https://github.com/golang/go synced 2024-10-03 06:11:21 -06:00
go/src/fmt
Rob Pike 3ee9df799f fmt: document existing behavior of nil receivers
If a method called by fmt triggers a panic, the output usually says
so. However, there is heretofore undocumented special treatment for
a panic caused by formatting a nil value with an Error or String
method: the output is simply "<nil>". Document that behavior.

Change-Id: Id0f79dd0b3487f9d1c74a0856727bba5cc342be4
Reviewed-on: https://go-review.googlesource.com/6410
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2015-03-01 18:17:53 +00:00
..
doc.go fmt: document existing behavior of nil receivers 2015-03-01 18:17:53 +00:00
export_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
fmt_test.go cmd/gc: allocate buffers for non-escaped strings on stack 2015-01-28 20:12:38 +00:00
format.go fmt: part 2 of the great flag rebuild: make %+v work in formatters 2014-10-03 13:23:35 -07:00
print.go fmt: print &map like &slice and &struct 2014-10-03 20:27:08 -07:00
scan_test.go fmt: fix bug in scanning of hex strings 2014-12-22 04:08:32 +00:00
scan.go fmt: fix bug in scanning of hex strings 2014-12-22 04:08:32 +00:00
stringer_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00