]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/log/slog/record.go
log/slog: fix method name in docs
[gostls13.git] / src / log / slog / record.go
index 8afe253bc83389416943ac97f2b762f36523fe20..97c87019a6aff5bbee9a96c4084ab815f0737f66 100644 (file)
@@ -193,7 +193,7 @@ type Source struct {
        Line int    `json:"line"`
 }
 
-// attrs returns the non-zero fields of s as a slice of attrs.
+// group returns the non-zero fields of s as a slice of attrs.
 // It is similar to a LogValue method, but we don't want Source
 // to implement LogValuer because it would be resolved before
 // the ReplaceAttr function was called.