aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Galen Rice <[email protected]>2024-04-16 12:33:58 -0400
committerGravatar GitHub <[email protected]>2024-04-16 12:33:58 -0400
commit5b32632e2fab623c6146b71b8d3405966f6550c0 (patch)
tree0537e5b872464fad2c6007559e82197826ee119e
parentfix: further condense the second block (diff)
fix: remove a line
-rw-r--r--bot/resources/tags/loop-remove.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/resources/tags/loop-remove.md b/bot/resources/tags/loop-remove.md
index 0905dc76e..624af8bcb 100644
--- a/bot/resources/tags/loop-remove.md
+++ b/bot/resources/tags/loop-remove.md
@@ -16,8 +16,7 @@ print(data) # [2, 4] <-- every OTHER item was removed!
[2, 3, 4] # Remove current: all elements shift
^
[2, 3, 4] # Next iteration: move the pointer
- ^
-# and so on
+ ^ # and so on...
```
You can avoid this pitfall by:
- using a list comprehension to produce a new list (as a way of filtering items):