Skip to content

Commit 4c0eb45

Browse files
authored
declare $string so xt test passes
1 parent 2321be8 commit 4c0eb45

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/Type/Str.pod6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,7 @@ one does this:
907907
908908
Note that new characters can be inserted as well:
909909
910+
my $string = 'azc';
910911
$string.substr-rw(2, 0) = "-Zorro-"; # insert new characters BEFORE the character at index 2
911912
$string.say; # OUTPUT: «az-Zorro-c␤»
912913

0 commit comments

Comments
 (0)