Skip to content

Commit 71f2532

Browse files
committed
Fix examples showing underscores in numbers
It was somewhat confusing to claim that `1_000_000` and `10_00_00` evaluate to the same number, make sure that all numbers have the same number of zeroes, even if they have different numbers of underscores.
1 parent e3d793c commit 71f2532

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Language/syntax.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ number:
251251
252252
1000000
253253
1_000_000
254-
10_0000
255-
10_00_00
254+
10_00000
255+
100_00_00
256256
257257
=head4 Int literals
258258

0 commit comments

Comments
 (0)