summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-08-14 15:30:55 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-08-14 15:30:55 +0200
commitbbefba02647b5ee3e9ed3d2dec51f1679f0ebdff (patch)
tree09657228de56bd60d739c83963cad3cc32d9a5f2
parentc2fde9cc1e6cf672c56f97f0badf87dae4b02c5f (diff)
parentf000be3237c5aa9079b77e31e13970d613e35df7 (diff)
downloadredot-engine-bbefba02647b5ee3e9ed3d2dec51f1679f0ebdff.tar.gz
Merge pull request #80608 from emmanuel-ferdman/wip
docs: Fix link to two's complement wiki page
-rw-r--r--doc/classes/int.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/int.xml b/doc/classes/int.xml
index bc0da03e98..914cf75929 100644
--- a/doc/classes/int.xml
+++ b/doc/classes/int.xml
@@ -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