Skip to content

Commit fdb9477

Browse files
committed
Make examples clearer, fix indentation
cfa++
1 parent cd16648 commit fdb9477

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/Type/Match.pod6

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,10 @@ Defined as:
118118
119119
Tries to convert stringified result of the matched text into Int.
120120
121-
say ('12345' ~~ /234/).Int; # OUTPUT: «234␤»
121+
say ('12345' ~~ /234/).Int; # OUTPUT: «234␤»
122+
say ('12345' ~~ /234/).Int.^name; # OUTPUT: «Int␤»
122123
# the next line produces a warning about using Nil (result of a no match) in numeric context
123-
say ('one-two' ~~ /234/).Int; # OUTPUT: «0␤» # because Nil.Int returns 0
124+
say ('one-two' ~~ /234/).Int; # OUTPUT: «0␤» # because Nil.Int returns 0
124125
125126
=head2 method caps
126127

0 commit comments

Comments
 (0)