diff --git a/doc/api/http2.md b/doc/api/http2.md index 71aeeb536316ce..02b2e71381a47b 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -354,7 +354,7 @@ server.on('stream', (stream, headers) => { stream.end('

Hello World

'); }); -server.listen(80); +server.listen(8000); ``` Even though HTTP/2 streams and network sockets are not in a 1:1 correspondence, @@ -2518,7 +2518,7 @@ server.on('stream', (stream, headers) => { stream.end('

Hello World

'); }); -server.listen(80); +server.listen(8000); ``` ### `http2.createSecureServer(options[, onRequestHandler])` @@ -2659,7 +2659,7 @@ server.on('stream', (stream, headers) => { stream.end('

Hello World

'); }); -server.listen(80); +server.listen(8443); ``` ### `http2.connect(authority[, options][, listener])`