aboutsummaryrefslogtreecommitdiff
path: root/docs/crypto.md
diff options
context:
space:
mode:
authorame <[email protected]>2024-04-06 16:50:38 -0500
committerame <[email protected]>2024-04-06 16:50:38 -0500
commit7fbafae25ca81e9acb745fd75ef7f1be55ad7d92 (patch)
tree639c6d618b44f0ff2a4fcac9f557b906f37cbec3 /docs/crypto.md
parentb8c10dac99316974d142c530356ad5cd8fdf9afa (diff)
changed the add metamethod
Diffstat (limited to 'docs/crypto.md')
-rw-r--r--docs/crypto.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/crypto.md b/docs/crypto.md
index 75ae5f0..10401ab 100644
--- a/docs/crypto.md
+++ b/docs/crypto.md
@@ -87,10 +87,10 @@ obj = llib.crypto.adler32()
obj:update("meow")
hash = obj:final() --043c01b9s (the same)
---along with the + operator being overloaded to work as obj:update and returning the current final
+--along with the + operator being overloaded to work as obj:update and returning a seperate object
obj = llib.crypto.adler32()
-hash = obj + meow -- (the same again)
-hash = obj:final() -- (the same, again)
+hash = (obj + "meow"):final() -- (the same again)
+hash = obj:update("meow"):final() -- you get the point
--and of course, the single function method still works too (will still do init-update-final in the backend)
hash = llib.crypto.adler32("meow") --043c01b9s (the same)