From d9fc06b15803ddb4328ca71b5f55419614fe1f04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Fri, 26 Nov 2021 09:58:32 +0100 Subject: [PATCH] doc: improve grammar in API description PR-URL: https://github.com/nodejs/node/pull/40959 Reviewed-By: Antoine du Hamel Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- doc/api/tls.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/tls.md b/doc/api/tls.md index 69fe8ab6227..373751c2811 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -1477,8 +1477,8 @@ Verifies the certificate `cert` is issued to `hostname`. Returns {Error} object, populating it with `reason`, `host`, and `cert` on failure. On success, returns {undefined}. -This function can be overwritten by providing alternative function as part of -the `options.checkServerIdentity` option passed to `tls.connect()`. The +This function can be overwritten by providing an alternative function as the +`options.checkServerIdentity` option that is passed to `tls.connect()`. The overwriting function can call `tls.checkServerIdentity()` of course, to augment the checks done with additional verification.