From 6dbb6dc2104237299cca414cd3a86256122e4abf Mon Sep 17 00:00:00 2001 From: ame Date: Fri, 5 Apr 2024 22:15:55 -0500 Subject: + + final fixes --- docs/crypto.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/crypto.md') diff --git a/docs/crypto.md b/docs/crypto.md index d46a7ad..75ae5f0 100644 --- a/docs/crypto.md +++ b/docs/crypto.md @@ -87,6 +87,11 @@ 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 +obj = llib.crypto.adler32() +hash = obj + meow -- (the same again) +hash = obj:final() -- (the same, again) + --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) -- cgit v1.2.3