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 10, 2022
1 parent f697ba2 commit 45aa3f6
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 @@ -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 45aa3f6

Please sign in to comment.