Skip to content

Commit

Permalink
doc: fix return type of crypto.getFips()
Browse files Browse the repository at this point in the history
`crypto.getFips()` returns a number, not a boolean.

PR-URL: #32580
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Signed-off-by: Richard Lau <[email protected]>
  • Loading branch information
richardlau authored and targos committed Apr 11, 2020
1 parent e01d061 commit cf4f188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -2308,8 +2308,8 @@ console.log(aliceSecret === bobSecret);
added: v10.0.0
-->

* Returns: {boolean} `true` if and only if a FIPS compliant crypto provider is
currently in use.
* Returns: {number} `1` if and only if a FIPS compliant crypto provider is
currently in use, `0` otherwise.

### `crypto.getHashes()`
<!-- YAML
Expand Down

0 comments on commit cf4f188

Please sign in to comment.