Skip to content

Commit aa84b89

Browse files
committed
Minor grammar edits
1 parent 5f11620 commit aa84b89

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
@@ -6,7 +6,7 @@
66
77
class Match is Capture is Cool does NQPMatchRole {}
88
9-
C<Match> objects are the result of a successful regex match, this does include
9+
C<Match> objects are the result of a successful regex match, including
1010
any zero-width match. They store a reference to the original string (C<.orig>),
1111
positional and named captures, the positions of the start and end of the match
1212
in the original string, and a payload referred to as I<AST> (abstract syntax
@@ -21,7 +21,8 @@ expression, as shown here:
2121
'abc' ~~ /.$${ $c = $¢ }/;
2222
say $c; # OUTPUT: «「c」␤»
2323
24-
In this case, we are running the code among curly braces when the match occurs,
24+
In this example we are running the code among curly braces when the match
25+
occurs,
2526
in this case the last letter in the string (actually, the last, indicated by the
2627
double C<$>, character); C<$c> gets the value of the cursor C<>, which
2728
contains the C<Match>; when used with C<say>, the C<Match> is stringified by

0 commit comments

Comments
 (0)