From 5ac344b2a22c4519c06ada756e3a6740dde28939 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 8d6c5a94f90057..864b357d452dc7 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -2892,7 +2892,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)`