Skip to content

Commit

Permalink
For-of rather than for-in
Browse files Browse the repository at this point in the history
  • Loading branch information
jakearchibald authored and annevk committed Jun 16, 2018
1 parent d39fe99 commit 33275d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions infra.bs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ iteration.

<ol>
<li>
<p><a for=list>For each</a> |item| in |example|:
<p><a for=list>For each</a> |item| of |example|:
<ol>
<li>Perform |operation| on |item|.
</ol>
Expand All @@ -296,7 +296,7 @@ iteration.

<ol>
<li>
<p><a for=list>For each</a> |item| in |example|:
<p><a for=list>For each</a> |item| of |example|:
<ol>
<li>If |item| is 3, then <a for=iteration>continue</a>.
<li>Perform |operation| on |item|.
Expand All @@ -308,7 +308,7 @@ iteration.

<ol>
<li>
<p><a for=list>For each</a> |item| in |example|:
<p><a for=list>For each</a> |item| of |example|:
<ol>
<li>If |item| is 3, then <a for=iteration>break</a>.
<li>Perform |operation| on |item|.
Expand Down Expand Up @@ -916,7 +916,7 @@ of creating a new <a>ordered set</a> |set| and, <a for=list>for each</a> |item|
in consecutively increasing order, as long as <var>m</var> is greather than or equal to
<var>n</var>.

<p class=example id=example-the-range><a for=set>For each</a> <var>n</var> in <a>the range</a> 1 to
<p class=example id=example-the-range><a for=set>For each</a> <var>n</var> of <a>the range</a> 1 to
4, inclusive, &hellip;


Expand Down

0 comments on commit 33275d6

Please sign in to comment.