Skip to content

Commit 3afe181

Browse files
committed
remove trailing whitespace
1 parent aeab992 commit 3afe181

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/Language/faq.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,14 +314,14 @@ not. The C<s///> operator works on a variable, into which it puts a newly
314314
created string object. Likewise, C<$i++> works on the C<$i> variable, not
315315
just on the value in it.
316316
317-
Knowing this, you would not try to change a literal string (e.g. like
317+
Knowing this, you would not try to change a literal string (e.g. like
318318
C<'hello' ~~ s/h/H/; #doesn't work>), but you might accidentally do
319319
something equivalent using `map`:
320320
321321
my @foo = <hello world>.map: { s/h/H/ }; # dies with
322322
# Cannot modify an immutable Str (hello)
323323
324-
my @bar = <hello world>».subst-mutate: 'h', 'H'; # dies with
324+
my @bar = <hello world>».subst-mutate: 'h', 'H'; # dies with
325325
# Cannot resolve caller subst-mutate(Str: Str, Str);
326326
# the following candidates match the type but require
327327
# mutable arguments: ...
@@ -331,7 +331,7 @@ the the original in place:
331331
332332
my @foo = <hello world>.map: { S/h/H/ }; # ['Hello','world']
333333
my @bar = <hello world>».subst: 'h', 'H'; # ['Hello','world']
334-
334+
335335
See the documentation on L<containers|/language/containers> for more
336336
information.
337337

0 commit comments

Comments
 (0)