File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -93,8 +93,8 @@ func (r Record) Attrs(f func(Attr) bool) {
9393 }
9494}
9595
96- // AttrsIter returns an iterator over every attribute in the [Record].
97- func (r Record ) AttrsIter () iter.Seq [Attr ] {
96+ // AllAttrs returns an iterator over every attribute in the [Record].
97+ func (r Record ) AllAttrs () iter.Seq [Attr ] {
9898 return func (yield func (Attr ) bool ) {
9999 r .Attrs (yield )
100100 }
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ func TestRecordAttrs(t *testing.T) {
4141 // Hit both loops in Record.Attrs: front and back.
4242 for _ , stop := range []int {2 , 6 } {
4343 var got []Attr
44- for a := range r .AttrsIter () {
44+ for a := range r .AllAttrs () {
4545 got = append (got , a )
4646 if len (got ) < stop {
4747 break
You can’t perform that action at this time.
0 commit comments