From bd6615daec9f5887fa1cc9e88af67a62a6b45fe5 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 1/2] fix crypto "Verify" typo fix crypto "Verify" typo I am currently translating doc into Chinese, but I found this problem in the translation process. --- 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 9526e06353481e..fa00aab81bf48d 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: From cac3579b3012cede0b377d1769e8f23ccdb9ef46 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:14:35 +0800 Subject: [PATCH 2/2] wrap lines at 80 columns I'm sorry, I did not realize this before. --- 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 fa00aab81bf48d..4dec3e0aca17f8 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.createVerify()`][] method is used to create `Verify` instances. `Verify` -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: