diff --git a/doc/api/tls.md b/doc/api/tls.md index 11ed3260527585..50cce2c83c96f6 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -1472,8 +1472,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.