Skip to content

Commit 4076192

Browse files
committed
changes to match
1 parent ba43d14 commit 4076192

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

source/ch3_javadatatypes.ptx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -735,15 +735,14 @@ public class Histo {
735735
<statement>
736736
<p>
737737
Match each Python <c>for</c> loop with its equivalent Java <c>for</c> loop.
738-
Note: There are extra options that represent common syntax mistakes or off-by-one errors.
739738
</p>
740739
</statement>
741740

742741
<matches>
743742

744743
<match>
745-
<premise><c>for i in range(2, 101, 2)</c></premise>
746-
<response><c>for (int i = 2; i &lt; 101; i += 2)</c></response>
744+
<premise><c>for i in range(2, 102, 2)</c></premise>
745+
<response><c>for (int i = 2; i &lt; 102; i += 2)</c></response>
747746
</match>
748747

749748
<match>
@@ -761,7 +760,7 @@ public class Histo {
761760
</match>
762761

763762
<match>
764-
<response><c>for (int i = 2; i &lt;= 101; i += 2)</c></response>
763+
<response><c>for (int i = 2; i &lt;= 102; i += 2)</c></response>
765764
</match>
766765

767766
<match>

0 commit comments

Comments
 (0)