Skip to content

Commit

Permalink
Merge pull request #80608 from emmanuel-ferdman/wip
Browse files Browse the repository at this point in the history
docs: Fix link to two's complement wiki page
  • Loading branch information
akien-mga committed Aug 14, 2023
2 parents c2fde9c + f000be3 commit bbefba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/classes/int.xml
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@
<operator name="operator ~">
<return type="int" />
<description>
Performs the bitwise [code]NOT[/code] operation on the [int]. Due to [url=https://en.wikipedia.org/wiki/Two%27s_complement/]2's complement[/url], it's effectively equal to [code]-(int + 1)[/code].
Performs the bitwise [code]NOT[/code] operation on the [int]. Due to [url=https://en.wikipedia.org/wiki/Two%27s_complement]2's complement[/url], it's effectively equal to [code]-(int + 1)[/code].
[codeblock]
print(~4) # Prints -5
print(~(-7)) # Prints 6
Expand Down

0 comments on commit bbefba0

Please sign in to comment.