Skip to content

Commit cf4f188

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 e01d061 commit cf4f188

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
@@ -2308,8 +2308,8 @@ console.log(aliceSecret === bobSecret);
23082308
added: v10.0.0
23092309
-->
23102310

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

23142314
### `crypto.getHashes()`
23152315
<!-- YAML

0 commit comments

Comments
 (0)