summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2013-12-11 20:39:22 -0800
committerTimothy J Fontaine <tjfontaine@gmail.com>2013-12-11 20:39:22 -0800
commitf89a7185b7fb51fdbaf117f443bdc78925b44e50 (patch)
tree1b9221b97ed4219b224eab0ac5fdb1d8380a37f7 /doc
parent04d52270b6a71256a89c20b8994c9de8d3bca532 (diff)
downloadandroid-node-v8-f89a7185b7fb51fdbaf117f443bdc78925b44e50.tar.gz
android-node-v8-f89a7185b7fb51fdbaf117f443bdc78925b44e50.tar.bz2
android-node-v8-f89a7185b7fb51fdbaf117f443bdc78925b44e50.zip
doc: mention `binary` as deafult for Hash strings
Diffstat (limited to 'doc')
-rw-r--r--doc/api/crypto.markdown5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/api/crypto.markdown b/doc/api/crypto.markdown
index 1aba68ee36..8dd9b7c41e 100644
--- a/doc/api/crypto.markdown
+++ b/doc/api/crypto.markdown
@@ -100,8 +100,9 @@ Returned by `crypto.createHash`.
Updates the hash content with the given `data`, the encoding of which
is given in `input_encoding` and can be `'utf8'`, `'ascii'` or
-`'binary'`. If no encoding is provided, then a buffer is expected.
-If `data` is a `Buffer` then `input_encoding` is ignored.
+`'binary'`. If no encoding is provided and the input is a string an
+encoding of `'binary'` is enforced. If `data` is a `Buffer` then
+`input_encoding` is ignored.
This can be called many times with new data as it is streamed.