File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -184,10 +184,10 @@ The common areas you should watch out for are:
184
184
= begin code :skip-test
185
185
# WRONG; trying to hash-slice a Bool:
186
186
while ($++ > 5){ .say }
187
-
187
+
188
188
# RIGHT:
189
189
while ($++ > 5) { .say }
190
-
190
+
191
191
# EVEN BETTER; Perl 6 does not require parentheses there:
192
192
while $++ > 5 { .say }
193
193
= end code
@@ -197,15 +197,15 @@ The common areas you should watch out for are:
197
197
= begin code :skip-test
198
198
# WRONG; ambiguity with `[<]` meta op:
199
199
my @a = [[<foo>],];
200
-
200
+
201
201
# RIGHT; reductions cannot have spaces in them, so put one in:
202
- my @a = [[ <foo>],];
203
-
202
+ my @a = [[ <foo>],];
203
+
204
204
# No ambiguity here, natural spaces between items suffice to resolve it:
205
- my @a = [[<foo bar ber>],];
205
+ my @a = [[<foo bar ber>],];
206
206
= end code
207
207
208
- =head3
208
+ =head3
209
209
210
210
= head1 Captures
211
211
You can’t perform that action at this time.
0 commit comments