Skip to content

bytes: fix typo in iter.go #73777

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/bytes/iter.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func SplitAfterSeq(s, sep []byte) iter.Seq[[]byte] {
return splitSeq(s, sep, len(sep))
}

// FieldsSeq returns an iterator over subslices of s split around runs of
// FieldsSeq returns an iterator over subslices of s split around runes of
// whitespace characters, as defined by [unicode.IsSpace].
// The iterator yields the same subslices that would be returned by [Fields](s),
// but without constructing a new slice containing the subslices.
Expand Down Expand Up @@ -109,7 +109,7 @@ func FieldsSeq(s []byte) iter.Seq[[]byte] {
}
}

// FieldsFuncSeq returns an iterator over subslices of s split around runs of
// FieldsFuncSeq returns an iterator over subslices of s split around runes of
// Unicode code points satisfying f(c).
// The iterator yields the same subslices that would be returned by [FieldsFunc](s),
// but without constructing a new slice containing the subslices.
Expand Down