Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
give fair notice of a possible silent error
  • Loading branch information
tbrowder committed Oct 16, 2016
1 parent 7bd27cb commit 2bc0df8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/Language/operators.pod6
Expand Up @@ -1060,12 +1060,14 @@ multi sub infix:<x>(Str:D, Int:D)
X<String repetition operator>.
Coerces C<$a> to L<Str> and C<$b> to L<Int> and repeats the string C<$b>
Coerces C<$a> to L<Str> and C<$b> to L<Int> and repeats the string C<$a> C<$b>
times. Return the empty string if C<< $b <= 0 >>.
say 'ab' x 3; # ababab
say 42 x 3; # 424242
Note there is no warning to the user when C<$b> is coerced to a zero or negative integer.
=head2 infix C«xx»
=begin code :skip-test
Expand Down

0 comments on commit 2bc0df8

Please sign in to comment.