Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #2795 from Elronnd/master
Replace "two's complement" with "bitwise negation" to better reflect the meaning and usage of the operator
  • Loading branch information
JJ committed May 17, 2019
2 parents dc7f8a7 + a640eda commit a69bccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/Language/js-nutshell.pod6
Expand Up @@ -328,7 +328,7 @@ console.log(~1); // OUTPUT: -2
=end code
In Perl 6, there is no equivalent to C«>>>». All bitwise operators are
prefixed with C<+>, however two's complement uses C<+^> instead of C<~>:
prefixed with C<+>, however bitwise negation uses C<+^> instead of C<~>:
=begin code
say 1 +< 1; # OUTPUT: 2
Expand Down

0 comments on commit a69bccb

Please sign in to comment.