docs: fix link to two's complement wiki page

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
This commit is contained in:
Emmanuel Ferdman 2023-08-14 12:44:11 +03:00
parent 0308422f46
commit f000be3237
No known key found for this signature in database
GPG Key ID: 0CF84597DD87A9FF
1 changed files with 1 additions and 1 deletions

View File

@ -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