]> Cypherpunks repositories - gostls13.git/commit
fmt: clear flags before printing extra argument errors
authorMartin Möhrmann <martisch@uos.de>
Fri, 11 Mar 2016 07:10:55 +0000 (08:10 +0100)
committerRob Pike <r@golang.org>
Wed, 16 Mar 2016 03:46:24 +0000 (03:46 +0000)
commitcf08eadf9fbde7d992883d3382f4e353eebe53a9
treef96ca62e8a78c90d2285477c8e651263e1f293b9
parent790053b25ed384a81dba1af7c8c0646b48018af3
fmt: clear flags before printing extra argument errors

Do a reset of the fmt flags before printing the extra argument
error message to prevent a malformed printing of extra arguments.

Regroup tests for extra argument error strings.

Change-Id: Ifd97f5ca36f6c97ed5a380d975cf154d17997d3f
Reviewed-on: https://go-review.googlesource.com/20571
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/fmt/fmt_test.go
src/fmt/print.go