]> Cypherpunks repositories - gostls13.git/commit
fmt: split doPrint into two specialized functions
authorMartin Möhrmann <martisch@uos.de>
Thu, 17 Mar 2016 22:18:14 +0000 (23:18 +0100)
committerRob Pike <r@golang.org>
Sat, 26 Mar 2016 12:12:04 +0000 (12:12 +0000)
commitad391c908b8e4532937ee912caf8ddb8f3891ef8
tree99050cb4abfda25678954c49e610f6bb17ddb01f
parentb9daf0a408acb4099eda268ed80203f83ecd3fa5
fmt: split doPrint into two specialized functions

Remove format flag reset from doPrint. Flags will not be set in
doPrint and printArg will not return with flags modified.

Remove the extra arguments addspace and addnewline and split up
doPrint into two simpler and specialized functions.

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