summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2018-01-11 10:05:15 -0800
committerJames M Snell <jasnell@gmail.com>2018-01-11 10:14:20 -0800
commit47a282293f62813a88b4c4ba18bc5e5246a6515c (patch)
tree454de03680d434d529d13d7d29c3f43ca1c59d21 /doc
parent078b7a2a65599ac6bc7e16e18de482556259d0db (diff)
downloadandroid-node-v8-47a282293f62813a88b4c4ba18bc5e5246a6515c.tar.gz
android-node-v8-47a282293f62813a88b4c4ba18bc5e5246a6515c.tar.bz2
android-node-v8-47a282293f62813a88b4c4ba18bc5e5246a6515c.zip
doc: fix s/rstStream/close in example
PR-URL: https://github.com/nodejs/node/pull/18088 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/http2.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md
index c008a13091..f07c5fb091 100644
--- a/doc/api/http2.md
+++ b/doc/api/http2.md
@@ -1015,7 +1015,7 @@ const { NGHTTP2_CANCEL } = http2.constants;
const req = client.request({ ':path': '/' });
// Cancel the stream if there's no activity after 5 seconds
-req.setTimeout(5000, () => req.rstStream(NGHTTP2_CANCEL));
+req.setTimeout(5000, () => req.close(NGHTTP2_CANCEL));
```
#### http2stream.state