From: Robert Hencke Date: Thu, 22 Dec 2011 18:05:51 +0000 (-0800) Subject: testing: compare Log to Println X-Git-Tag: weekly.2011-12-22~24 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b5216e2e559a585a424fa3eb28c0e158fe79a75b;p=gostls13.git testing: compare Log to Println Log always adds spaces between operands, like Println but unlike Print R=golang-dev CC=golang-dev https://golang.org/cl/5504069 --- diff --git a/src/pkg/testing/testing.go b/src/pkg/testing/testing.go index 3d81ee0b9e..ded48d9e21 100644 --- a/src/pkg/testing/testing.go +++ b/src/pkg/testing/testing.go @@ -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...)) }