Skip to content

Commit

Permalink
RangefuncExperiment: Fix Seq2 typo
Browse files Browse the repository at this point in the history
Change-Id: Ie4fc4028bf2c1f37ebf9b6228bdcbef15cb0d530
GitHub-Last-Rev: c077d54
GitHub-Pull-Request: #6
Reviewed-on: https://go-review.googlesource.com/c/wiki/+/556115
Reviewed-by: Cherry Mui <[email protected]>
Auto-Submit: Hyang-Ah Hana Kim <[email protected]>
Reviewed-by: qiulaidongfeng <[email protected]>
  • Loading branch information
earthboundkid authored and gopherbot committed Jan 26, 2024
1 parent 9f7ce56 commit 847ad8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RangefuncExperiment.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ and helper functions
With `GOEXPERIMENT=rangefunc` enabled, loops of the form

for v := range f { ... } // f has type Seq[V], v has type V
for k, v := range g { ... } // g has type Seq[K,V], k and v have types K and V
for k, v := range g { ... } // g has type Seq2[K,V], k and v have types K and V

will iterate over the values provided by `f` and `g`, with the usual semantics for break,
continue, return, and other control flow in the loop bodies. If `next(v)` or `next(k,v)`
Expand Down

0 comments on commit 847ad8e

Please sign in to comment.