Skip to content

Commit 4604127

Browse files
richardlautargos
authored andcommitted
doc: fix return type of crypto.getFips()
`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]>
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

Lines changed: 2 additions & 2 deletions
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)