Skip to content

Commit a640eda

Browse files
committed
Replace "two's complement" with "bitwise negation" to better reflect the meaning and usage of the operator
1 parent dc7f8a7 commit a640eda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Language/js-nutshell.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ console.log(~1); // OUTPUT: -2
328328
=end code
329329
330330
In Perl 6, there is no equivalent to C«>>>». All bitwise operators are
331-
prefixed with C<+>, however two's complement uses C<+^> instead of C<~>:
331+
prefixed with C<+>, however bitwise negation uses C<+^> instead of C<~>:
332332
333333
=begin code
334334
say 1 +< 1; # OUTPUT: 2

0 commit comments

Comments
 (0)