Skip to content

Commit 4604127

Browse files
richardlautargos
authored andcommittedApr 22, 2020
doc: fix return type of crypto.getFips()
`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>
1 parent 4e405ee commit 4604127

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎doc/api/crypto.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2273,8 +2273,8 @@ console.log(aliceSecret === bobSecret);
22732273
added: v10.0.0
22742274
-->
22752275

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

22792279
### `crypto.getHashes()`
22802280
<!-- YAML

0 commit comments

Comments
 (0)
Please sign in to comment.