diff --git a/doc/api/crypto.markdown b/doc/api/crypto.markdown index dce83c563c1bd8..d6932f8e9dd5ee 100644 --- a/doc/api/crypto.markdown +++ b/doc/api/crypto.markdown @@ -1131,7 +1131,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' ```