From cf4f188fd69ae64b1ff5c32f556349f99880a433 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Tue, 31 Mar 2020 06:51:47 -0400 Subject: [PATCH] doc: fix return type of `crypto.getFips()` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `crypto.getFips()` returns a number, not a boolean. PR-URL: https://github.com/nodejs/node/pull/32580 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Anna Henningsen Reviewed-By: Tobias Nießen Signed-off-by: Richard Lau --- doc/api/crypto.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index bd4fead3eb1917..3f783fbeadd305 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()`