doc: fix typo in http2.md

sendTrilers => sendTrailers.

PR-URL: https://github.com/nodejs/node/pull/26616
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
This commit is contained in:
TJKoury 2019-03-12 14:41:34 -04:00 committed by Vse Mozhet Byt
parent 575e086b66
commit 8cbbe73553

View File

@ -1602,7 +1602,7 @@ default behavior is to destroy the stream.
When the `options.waitForTrailers` option is set, the `'wantTrailers'` event When the `options.waitForTrailers` option is set, the `'wantTrailers'` event
will be emitted immediately after queuing the last chunk of payload data to be will be emitted immediately after queuing the last chunk of payload data to be
sent. The `http2stream.sendTrilers()` method can then be used to sent trailing sent. The `http2stream.sendTrailers()` method can then be used to sent trailing
header fields to the peer. header fields to the peer.
When `options.waitForTrailers` is set, the `Http2Stream` will not automatically When `options.waitForTrailers` is set, the `Http2Stream` will not automatically