Skip to content

Commit d3e2538

Browse files
author
Galen Rice
authored
fix: include "adding" context, and add aliases for loop-add and loop-modify
1 parent ae2a703 commit d3e2538

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bot/resources/tags/loop-remove.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
2+
aliases: ["loop-add", "loop-modify"]
23
embed:
34
title: "Removing items inside a for loop"
45
---
5-
Avoid removing items from a collection, such as a list, as you iterate that collection in a `for` loop:
6+
Avoid adding to or removing from a collection, such as a list, as you iterate that collection in a `for` loop:
67
```py
78
data = [1, 2, 3, 4]
89
for item in data:

0 commit comments

Comments
 (0)