mirror of
https://github.com/golang/go
synced 2024-10-14 11:53:56 +00:00
slices: fix punctuation in the documentation of Values
Change-Id: Idea4f92d511b5f18531758667cb0cb5ed6f91a0a Reviewed-on: https://go-review.googlesource.com/c/go/+/584359 Reviewed-by: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
parent
a949ade592
commit
cc1479653d
|
@ -33,7 +33,7 @@ func Backward[Slice ~[]E, E any](s Slice) iter.Seq2[int, E] {
|
|||
}
|
||||
}
|
||||
|
||||
// Values returns an iterator over the slice elements.
|
||||
// Values returns an iterator over the slice elements,
|
||||
// starting with s[0].
|
||||
func Values[Slice ~[]E, E any](s Slice) iter.Seq[E] {
|
||||
return func(yield func(E) bool) {
|
||||
|
|
Loading…
Reference in a new issue