summaryrefslogtreecommitdiff
path: root/std/hash
diff options
context:
space:
mode:
Diffstat (limited to 'std/hash')
-rw-r--r--std/hash/README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/std/hash/README.md b/std/hash/README.md
index 1716f0ffc..3000cbd05 100644
--- a/std/hash/README.md
+++ b/std/hash/README.md
@@ -23,7 +23,7 @@ import { createHash } from "https://deno.land/std/hash/mod.ts";
const hash = createHash("md5");
hash.update("Your data here");
-const final = hash.digest(); // returns ArrayBuffer
+const final = hash.digest(); // returns ArrayBuffer.
```
Please note that `digest` invalidates the hash instance's internal state.
@@ -34,8 +34,8 @@ import { createHash } from "https://deno.land/std/hash/mod.ts";
const hash = createHash("md5");
hash.update("Your data here");
-const final1 = hash.digest(); // returns ArrayBuffer
-const final2 = hash.digest(); // throws Error
+const final1 = hash.digest(); // returns ArrayBuffer.
+const final2 = hash.digest(); // throws Error.
```
If you need final hash in string formats, call `toString` method with output