diff options
author | Richard Lau <riclau@uk.ibm.com> | 2020-03-31 13:51:47 +0300 |
---|---|---|
committer | Richard Lau <riclau@uk.ibm.com> | 2020-04-03 14:17:58 +0300 |
commit | d4fd03e67371ef8db8c47d2981bbee9601700034 (patch) | |
tree | 7a73d877b59302e54f378546d0336db7772c78e3 /doc/api/crypto.md | |
parent | 83ebd7731852369fa08fb5885c7fcf7b671bce91 (diff) |
doc: fix return type of `crypto.getFips()`
`crypto.getFips()` returns a number, not a boolean.
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'doc/api/crypto.md')
-rw-r--r-- | doc/api/crypto.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/crypto.md b/doc/api/crypto.md index e5a271ad6d7..351f32c11f6 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -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 |