Skip to content

Commit ec21236

Browse files
erik-kroghesbena
andauthored
update docstring for isNonLastDestructedArrayElement
Co-authored-by: Esben Sparre Andreasen <esbena@github.com>
1 parent a24db09 commit ec21236

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/src/Statements/SuspiciousUnusedLoopIterationVariable.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ predicate countingLoop(EnhancedForLoop efl) {
4646
}
4747

4848
/**
49-
* Holds if `iter` is the non-last variable of array-destructuring in a for-loop.
50-
* E.g. `for(const [foo, iter, bar] of array) {..}`.
49+
* Holds if `iter` is a non-last variable of array-destructuring in a for-loop.
50+
* For example `foo` or `iter` in `for(const [foo, iter, bar] of array) {..}`.
5151
*/
5252
predicate isNonLastDestructedArrayElement(PurelyLocalVariable iter) {
5353
exists(ArrayPattern pattern | pattern = any(EnhancedForLoop loop).getLValue() |

0 commit comments

Comments
 (0)