Skip to content

Commit 9e67b06

Browse files
committed
make example compile
1 parent c42bbc2 commit 9e67b06

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/Type/Range.pod6

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,11 @@ Compares two L<Range|/type/Range> objects. If you use a L<C<Real>|/type/Real>,
481481
it will be compared to the L<Range|/type/Range> C<b..b>. If you use a
482482
L<Positional>|/type/Positional>.
483483
484-
say (1..2) cmp (1..2) # OUTPUT: «Same␤»
485-
say (1..2) cmp (1..3) # OUTPUT: «Less␤»
486-
say (1..4) cmp (1..3) # OUTPUT: «More␤»
487-
say (1..2) cmp 3 # OUTPUT: «Less␤»
488-
say (1..2) cmp [1,2] # OUTPUT: «Same␤»
484+
say (1..2) cmp (1..2); # OUTPUT: «Same␤»
485+
say (1..2) cmp (1..3); # OUTPUT: «Less␤»
486+
say (1..4) cmp (1..3); # OUTPUT: «More␤»
487+
say (1..2) cmp 3; # OUTPUT: «Less␤»
488+
say (1..2) cmp [1,2]; # OUTPUT: «Same␤»
489489
490490
=end pod
491491

0 commit comments

Comments
 (0)