Skip to content

Commit

Permalink
doc: fix optionality of callback arg of checkPrime
Browse files Browse the repository at this point in the history
The callback argument is required.

PR-URL: #44311
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
  • Loading branch information
tniessen authored and juanarbol committed Oct 11, 2022
1 parent 87cc487 commit 5ac344b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/crypto.md
Expand Up @@ -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)`

<!-- YAML
added: v15.8.0
Expand Down

0 comments on commit 5ac344b

Please sign in to comment.