Skip to content

Commit

Permalink
Fix swift link (#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtskydJ committed Jun 18, 2020
1 parent a7d172d commit 2d54895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/no-for-loop.md
Expand Up @@ -2,7 +2,7 @@

There's no reason to use old school for loops anymore for the common case. You can instead use for-of loop (with `.entries()` if you need to access the index).

Off-by-one errors are one of the most common bugs in software. [Swift actually removed this completely from the language.](https://github.com/apple/swift-evolution/blob/master/proposals/0004-remove-pre-post-inc-decrement.md).
Off-by-one errors are one of the most common bugs in software. [Swift actually removed this completely from the language.](https://github.com/apple/swift-evolution/blob/master/proposals/0007-remove-c-style-for-loops.md).

This rule is fixable unless index or element variables were used outside of the loop.

Expand Down

0 comments on commit 2d54895

Please sign in to comment.