From 1ecc6c05405dc23473567e49df689e0e9aa78581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sun, 21 Aug 2022 00:08:53 +0200 Subject: [PATCH] doc: fix optionality of callback arg of checkPrime The callback argument is required. PR-URL: https://github.com/nodejs/node/pull/44311 Reviewed-By: Luigi Pinca Reviewed-By: Moshe Atlow --- doc/api/crypto.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 5af51832e9ae3b..0eb36dc1ecb7b5 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -2910,7 +2910,7 @@ is currently in use. Setting to true requires a FIPS build of Node.js. This property is deprecated. Please use `crypto.setFips()` and `crypto.getFips()` instead. -### `crypto.checkPrime(candidate[, options[, callback]])` +### `crypto.checkPrime(candidate[, options], callback)`