From 4fa84c9589a2eb040b530353efa23786820894b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=90=E4=B8=B6=E8=A8=80?= Date: Fri, 25 Nov 2016 15:07:24 +0800 Subject: [PATCH] doc: fix crypto Verify cut-n-paste from Sign Verify documentation had cut-n-pasted documentation from Sign. PR-URL: https://github.com/nodejs/node/pull/9796 Reviewed-By: Anna Henningsen Reviewed-By: Evan Lucas Reviewed-By: Colin Ihrig Reviewed-By: Sam Roberts Reviewed-By: Michael Dawson Reviewed-By: Luigi Pinca Reviewed-By: Prince John Wesley --- doc/api/crypto.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 9526e06353..4dec3e0aca 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -935,8 +935,8 @@ of two ways: - Using the [`verify.update()`][] and [`verify.verify()`][] methods to verify the signature. - The [`crypto.createSign()`][] method is used to create `Sign` instances. - `Sign` objects are not to be created directly using the `new` keyword. +The [`crypto.createVerify()`][] method is used to create `Verify` instances. +`Verify` objects are not to be created directly using the `new` keyword. Example: Using `Verify` objects as streams: