Skip to content

Commit 4359d36

Browse files
committed
made the xml:id more defined
1 parent b859e71 commit 4359d36

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

source/ch6_definingclasses.ptx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public Fraction(Integer num, Integer den) {
280280
Let’s begin by implementing addition in Java:
281281
</p>
282282

283-
<listing xml:id="java-fraction-class-addition">
283+
<listing xml:id="java-fraction-class-addition-initial">
284284
<program language="java">
285285
<code>
286286
public Fraction add(Fraction otherFrac) {
@@ -305,7 +305,7 @@ public Fraction add(Fraction otherFrac) {
305305
So the following version of the code is equivalent:
306306
</p>
307307

308-
<listing xml:id="java-fraction-class-addition2">
308+
<listing xml:id="java-fraction-class-addition-equivalent">
309309
<program language="java">
310310
<code>
311311
public Fraction add(Fraction otherFrac) {
@@ -438,7 +438,7 @@ public class Fraction {
438438
</code> <tests> </tests>
439439
</program>
440440
</listing>
441-
441+
442442
</subsection>
443443
</section>
444444

0 commit comments

Comments
 (0)