aboutsummaryrefslogtreecommitdiff
path: root/content/moretypes.article
diff options
context:
space:
mode:
Diffstat (limited to 'content/moretypes.article')
-rw-r--r--content/moretypes.article7
1 files changed, 6 insertions, 1 deletions
diff --git a/content/moretypes.article b/content/moretypes.article
index 955214e..5fe9401 100644
--- a/content/moretypes.article
+++ b/content/moretypes.article
@@ -247,7 +247,12 @@ The first is the index, and the second is a copy of the element at that index.
You can skip the index or value by assigning to `_`.
-If you only want the index, drop the `,` `value` entirely.
+ for i, _ := range pow
+ for _, value := range pow
+
+If you only want the index, you can omit the second variable.
+
+ for i := range pow
.play moretypes/range-continued.go