go/src/fmt
Rob Pike 54111a5893 fmt: document and fix the handling of precision for strings and byte slices
Previous behavior was undocumented and inconsistent. Now it is documented
and consistent and measures the input size, since that makes more sense
when talking about %q and %x. For %s the change has no effect.

Fixes #8151.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/144540044
2014-09-24 14:33:30 -07:00
..
doc.go fmt: document and fix the handling of precision for strings and byte slices 2014-09-24 14:33:30 -07:00
export_test.go
fmt_test.go fmt: document and fix the handling of precision for strings and byte slices 2014-09-24 14:33:30 -07:00
format.go fmt: document and fix the handling of precision for strings and byte slices 2014-09-24 14:33:30 -07:00
print.go
scan.go
scan_test.go
stringer_test.go