From 903e8d09e191c2d06dd589a5128d5508383ef6a7 Mon Sep 17 00:00:00 2001 From: Marc Cuva Date: Thu, 18 Feb 2016 11:12:56 -0800 Subject: [PATCH] doc: fix typo in pbkdf2Sync code sample Function name in code sample had the wrong capitalization. PR-URL: https://github.com/nodejs/node/pull/5306 Reviewed-By: Roman Reiss --- doc/api/crypto.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/crypto.markdown b/doc/api/crypto.markdown index 2f9a84e5d65c45..bee85b5746d557 100644 --- a/doc/api/crypto.markdown +++ b/doc/api/crypto.markdown @@ -1130,7 +1130,7 @@ Example: ```js const crypto = require('crypto'); -const key = crypto.pbkdf2sync('secret', 'salt', 100000, 512, 'sha512'); +const key = crypto.pbkdf2Sync('secret', 'salt', 100000, 512, 'sha512'); console.log(key.toString('hex')); // 'c5e478d...1469e50' ```