]> Cypherpunks repositories - gostls13.git/commitdiff
slices: fix punctuation in the documentation of Values
authorAlberto Donizetti <alb.donizetti@gmail.com>
Sun, 12 May 2024 13:37:41 +0000 (15:37 +0200)
committerGopher Robot <gobot@golang.org>
Mon, 13 May 2024 21:40:32 +0000 (21:40 +0000)
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>
src/slices/iter.go

index a0f642e423250f480f1067995e3c597ded53927d..131cece3a06ff4f556bbbcb70a2c1e2a06a1c04d 100644 (file)
@@ -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) {