aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Galen Rice <[email protected]>2024-04-16 13:00:29 -0400
committerGravatar GitHub <[email protected]>2024-04-16 13:00:29 -0400
commitae2a70375b39109c21af445c71d6d26f2a215196 (patch)
tree2372175f5e7e2ebcf834c08353050c4b57f56e42
parentfix: correct language for how the iterator does its thing (diff)
fix: slightly condensed language
-rw-r--r--bot/resources/tags/loop-remove.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/resources/tags/loop-remove.md b/bot/resources/tags/loop-remove.md
index 2bb81a2e7..e2e179ce1 100644
--- a/bot/resources/tags/loop-remove.md
+++ b/bot/resources/tags/loop-remove.md
@@ -9,7 +9,7 @@ for item in data:
data.remove(item)
print(data) # [2, 4] <-- every OTHER item was removed!
```
-While iterating with a for loop, an index tracks the current position in the list. If the list is modified, this index may no longer refer to the same element, causing elements to be repeated or skipped.
+Inside the loop, an index tracks the current position. If the list is modified, this index may no longer refer to the same element, causing elements to be repeated or skipped.
```py
[1, 2, 3, 4] # First iteration: point to the first element
^