]> Cypherpunks repositories - gostls13.git/commitdiff
log/slog: fix broken link to Record.Clone in package docs
authorChristopher Taylor <ccmtaylor@gmail.com>
Thu, 22 Jun 2023 07:32:37 +0000 (07:32 +0000)
committerJonathan Amsterdam <jba@google.com>
Fri, 23 Jun 2023 12:15:01 +0000 (12:15 +0000)
Change-Id: If8b937fa9db89a537ad7d4ccb8c04f84d2cff3db
GitHub-Last-Rev: fdd4338118e6e19a0a3673f364afcdb0b60236a4
GitHub-Pull-Request: golang/go#60938
Reviewed-on: https://go-review.googlesource.com/c/go/+/505075
TryBot-Bypass: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
src/log/slog/doc.go

index 8237b4e3d5c45d84dec2ea0284cd5dd5ec8bdb93..97c1a0b5ef8e0e41bfb5e7adb140a19dcb6aadca 100644 (file)
@@ -255,7 +255,7 @@ and hidden fields that refer to state (such as attributes) indirectly. This
 means that modifying a simple copy of a Record (e.g. by calling
 [Record.Add] or [Record.AddAttrs] to add attributes)
 may have unexpected effects on the original.
-Before modifying a Record, use [Clone] to
+Before modifying a Record, use [Record.Clone] to
 create a copy that shares no state with the original,
 or create a new Record with [NewRecord]
 and build up its Attrs by traversing the old ones with [Record.Attrs].