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: nodejs#44311
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
  • Loading branch information
tniessen authored and Fyko committed Sep 15, 2022
1 parent ac42997 commit 39226b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)`

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

0 comments on commit 39226b6

Please sign in to comment.