We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84ac819 commit c37e118Copy full SHA for c37e118
src/log/slog/record.go
@@ -95,9 +95,7 @@ func (r Record) Attrs(f func(Attr) bool) {
95
96
// AllAttrs returns an iterator over every attribute in the [Record].
97
func (r Record) AllAttrs() iter.Seq[Attr] {
98
- return func(yield func(Attr) bool) {
99
- r.Attrs(yield)
100
- }
+ return r.Attrs
101
}
102
103
// AddAttrs appends the given Attrs to the [Record]'s list of Attrs.
0 commit comments