aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Galen Rice <[email protected]>2024-04-16 13:03:58 -0400
committerGravatar GitHub <[email protected]>2024-04-16 13:03:58 -0400
commitd3e25385a559cfc1b566f55742ffd26470f05135 (patch)
tree2685d9da49ca42c663a742b5627f5e81a25ceef3
parentfix: slightly condensed language (diff)
fix: include "adding" context, and add aliases for loop-add and loop-modify
-rw-r--r--bot/resources/tags/loop-remove.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/resources/tags/loop-remove.md b/bot/resources/tags/loop-remove.md
index e2e179ce1..cf309b046 100644
--- a/bot/resources/tags/loop-remove.md
+++ b/bot/resources/tags/loop-remove.md
@@ -1,8 +1,9 @@
---
+aliases: ["loop-add", "loop-modify"]
embed:
title: "Removing items inside a for loop"
---
-Avoid removing items from a collection, such as a list, as you iterate that collection in a `for` loop:
+Avoid adding to or removing from a collection, such as a list, as you iterate that collection in a `for` loop:
```py
data = [1, 2, 3, 4]
for item in data: