You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reorder "For loops" examples of the Language Tour (#3102)
The "For loops" section of the Language Tour described
`Iterable.forEach` before `for-in` and suggested `Iterable.forEach`
as a "good option". This currently is not the recommendation from
Effective Dart, which discourages using `Iterable.forEach` with
anonymous functions.
* Reorder the examples in the "For loops" section to put greater
emphasis on `for-in`.
* Describe `Iterable.forEach` as "an option" rather than as a "good
option".
* Adjust the code snippets so that the `Iterable.forEach` example
follows the Effective Dart guideline by using a tear-off instead
of an anonymous function.
* Update with review feedback from parlough
0 commit comments