Skip to content

Commit 2b85fdf

Browse files
authored
Update faq.rakudoc -- text mentions set difference operator, but links to subtraction operator (#4627)
text mentions https://docs.raku.org/language/operators#infix_(-),_infix_%E2%88%96 but links instead to https://docs.raku.org/language/operators#infix_-
1 parent db13317 commit 2b85fdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Language/faq.rakudoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ say "I ❤ 🦋".encode.gist; # OUTPUT: «utf8:0x<49 20 E2 9D A4 20 F0 9F A6 8B
352352

353353
=head2 String: How can I remove from a string some characters by index?
354354

355-
Use L<.comb|/routine/comb> to transform it to a L<C<Seq>|/type/Seq>, then the L<(-) infix|/language/operators#infix_-> to remove the unwanted indices:
355+
Use L<.comb|/routine/comb> to transform it to a L<C<Seq>|/type/Seq>, then the L<(-) infix|/language/operators#infix_(-),_infix_%E2%88%96> to remove the unwanted indices:
356356

357357
=begin code
358358
say '0123456789'.comb[(^* (-) (1..3, 8).flat).keys.sort].join; # OUTPUT: «045679␤»

0 commit comments

Comments
 (0)