Skip to content

Commit 45ed253

Browse files
committed
Revises text and closes #2704
1 parent 20330bd commit 45ed253

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/Language/syntax.pod6

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -583,9 +583,9 @@ or an explicit base in adverbial notation like C<< :16<A0> >> specifies it
583583
otherwise. Unlike other programming languages, leading zeros do I<not> indicate
584584
base 8; instead a compile-time warning is issued.
585585
586-
In all literal formats, you can use underscores to group digits; they
587-
don't carry any semantic information; the following literals all
588-
evaluate to the same number:
586+
In all literal formats, you can use underscores to group digits, although they
587+
don't carry any semantic information; the following literals all evaluate to the
588+
same number:
589589
590590
=begin code :skip-test
591591
1000000
@@ -594,21 +594,21 @@ evaluate to the same number:
594594
100_00_00
595595
=end code
596596
597-
=head4 Int literals
597+
=head4 C<Int> literals
598598
599599
Integers default to signed base-10, but you can use other bases. For details,
600600
see L<Int|/type/Int>.
601601
602602
=begin code :skip-test
603-
# actually not a literal, but unary - operator applied to numeric literal 2
603+
# not a single literal, but unary - operator applied to numeric literal 2
604604
-2
605605
12345
606606
0xBEEF # base 16
607607
0o755 # base 8
608608
:3<1201> # arbitrary base, here base 3
609609
=end code
610610
611-
=head4 Rat literals
611+
=head4 C<Rat> literals
612612
613613
L<Rat|/type/Rat> literals (rationals) are very common, and take the
614614
place of decimals or floats in many other languages. Integer division
@@ -623,7 +623,7 @@ also results in a C<Rat>.
623623
2/3 # Not actually a literal, but still a Rat
624624
=end code
625625
626-
=head4 Num literals
626+
=head4 C<Num> literals
627627
628628
Scientific notation with an integer exponent to base ten after an C<e> produces
629629
L<floating point number|/type/Num>:
@@ -636,7 +636,7 @@ L<floating point number|/type/Num>:
636636
2e2.5 # error
637637
=end code
638638
639-
=head4 Complex literals
639+
=head4 C<Complex> literals
640640
641641
L<Complex|/type/Complex> numbers are written either as an imaginary number
642642
(which is just a rational number with postfix C<i> appended), or as a sum of
@@ -648,7 +648,7 @@ a real and an imaginary number:
648648
=end code
649649
650650
X<|Pairs (literals)>
651-
=head3 Pair literals
651+
=head3 X<Pair literals>
652652
653653
L<Pairs|/type/Pair> are made of a key and a value, and there are two
654654
basic forms for constructing them: C<< key => 'value' >> and

0 commit comments

Comments
 (0)