]> Cypherpunks repositories - gostls13.git/commitdiff
testing: compare Log to Println
authorRobert Hencke <robert.hencke@gmail.com>
Thu, 22 Dec 2011 18:05:51 +0000 (10:05 -0800)
committerRob Pike <r@golang.org>
Thu, 22 Dec 2011 18:05:51 +0000 (10:05 -0800)
Log always adds spaces between operands, like Println but unlike Print

R=golang-dev
CC=golang-dev
https://golang.org/cl/5504069

src/pkg/testing/testing.go

index 3d81ee0b9e6754686bda89cadfc99f966c846ffb..ded48d9e21c57dc5abf479b394200104fe47023e 100644 (file)
@@ -147,7 +147,7 @@ func (c *common) log(s string) {
        c.output = append(c.output, decorate(s, true)...)
 }
 
-// Log formats its arguments using default formatting, analogous to Print(),
+// Log formats its arguments using default formatting, analogous to Println(),
 // and records the text in the error log.
 func (c *common) Log(args ...interface{}) { c.log(fmt.Sprintln(args...)) }