Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Replace "two's complement" with "bitwise negation" to better reflect …
…the meaning and usage of the operator
  • Loading branch information
moon-chilled committed May 17, 2019
1 parent dc7f8a7 commit a640eda
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 a640eda

Please sign in to comment.