summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Ferdman <emmanuelferdman@gmail.com>2023-08-14 12:44:11 +0300
committerEmmanuel Ferdman <emmanuelferdman@gmail.com>2023-08-14 12:44:11 +0300
commitf000be3237c5aa9079b77e31e13970d613e35df7 (patch)
tree011bc83eb429354d65e211948806a509178c210c
parent0308422f461dce11339896249e23ff02d978bfa0 (diff)
downloadredot-engine-f000be3237c5aa9079b77e31e13970d613e35df7.tar.gz
docs: fix link to two's complement wiki page
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
-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