]> Cypherpunks repositories - gostls13.git/commitdiff
log: make Default doc comment consistent with package doc
authorRodolfo Carvalho <rhcarvalho@gmail.com>
Thu, 26 Nov 2020 16:01:35 +0000 (17:01 +0100)
committerIan Lance Taylor <iant@golang.org>
Thu, 26 Nov 2020 21:10:09 +0000 (21:10 +0000)
None of the other, older, doc comments use the '*Logger' form, and while
'Logger' and 'logger' are both used in the package doc comment, the
common term used with the intended meaning is 'standard logger', which
appears another eleven times in doc comments.

Change-Id: I089103198fc82390517615eb27bbe7ef77107d34
Reviewed-on: https://go-review.googlesource.com/c/go/+/273486
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Ian Lance Taylor <iant@golang.org>

src/log/log.go

index 8c0f83f0d184e2f1d8655dfee028f4c8c66a8e0f..b77af29032927b8f36a94c55d718dfa41bf328fb 100644 (file)
@@ -75,7 +75,7 @@ func (l *Logger) SetOutput(w io.Writer) {
 
 var std = New(os.Stderr, "", LstdFlags)
 
-// Default returns the *Logger used by the package-level output functions.
+// Default returns the standard logger used by the package-level output functions.
 func Default() *Logger { return std }
 
 // Cheap integer to fixed-width decimal ASCII. Give a negative width to avoid zero-padding.