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 <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Signed-off-by: Richard Lau <riclau@uk.ibm.com>
  • 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
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.