aboutsummaryrefslogtreecommitdiff
path: root/lib/file_hash.nom
diff options
context:
space:
mode:
Diffstat (limited to 'lib/file_hash.nom')
-rw-r--r--lib/file_hash.nom6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/file_hash.nom b/lib/file_hash.nom
index 4d99e39..0d7e523 100644
--- a/lib/file_hash.nom
+++ b/lib/file_hash.nom
@@ -28,15 +28,15 @@ lua> ".."
end
attrdir(".");
-action [sha1 %]:
+action [sha1 %]
lua> "return sha1(\%);"
-action [file with hash %hash]:
+action [file with hash %hash]
%file <- (%hash in %hash_to_filename)
assume %file or barf "File with SHA1 hash \%hash not found!"
return %file
-action [hash of file %filename]:
+action [hash of file %filename]
lua> ".."
local f = io.open(\%filename);
local hash = sha1(f:read("*a"));