docs: fix res.sendStatus/sendFile jsdoc comments

closes #4673
This commit is contained in:
zhangky 2021-08-12 14:35:46 +08:00 committed by Douglas Christopher Wilson
parent 821b7f0624
commit f9a0560a9c

View File

@ -364,7 +364,7 @@ res.sendStatus = function sendStatus(statusCode) {
*
* Automatically sets the _Content-Type_ response header field.
* The callback `callback(err)` is invoked when the transfer is complete
* or when an error occurs. Be sure to check `res.sentHeader`
* or when an error occurs. Be sure to check `res.headersSent`
* if you wish to attempt responding, as the header and some data
* may have already been transferred.
*
@ -446,7 +446,7 @@ res.sendFile = function sendFile(path, options, callback) {
*
* Automatically sets the _Content-Type_ response header field.
* The callback `callback(err)` is invoked when the transfer is complete
* or when an error occurs. Be sure to check `res.sentHeader`
* or when an error occurs. Be sure to check `res.headersSent`
* if you wish to attempt responding, as the header and some data
* may have already been transferred.
*