Skip to content

Commit

Permalink
doc: fix code nits in common/README
Browse files Browse the repository at this point in the history
1. Sync comments and code
2. Fix typos

PR-URL: #17971
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Khaidi Chu <i@2333.moe>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
vsemozhetbyt authored and MylesBorins committed Jan 9, 2018
1 parent 6ad25d9 commit 080e6d1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ frame.
// padlen is an 8-bit integer giving the number of padding bytes to include
// final is a boolean indicating whether the End-of-stream flag should be set,
// defaults to false.
const data = new http2.DataFrame(id, payload, padlen, final);
const frame = new http2.DataFrame(id, payload, padlen, final);

socket.write(frame.data);
```
Expand All @@ -637,8 +637,7 @@ The `http2.HeadersFrame` is a subclass of `http2.Frame` that serializes a
// padlen is an 8-bit integer giving the number of padding bytes to include
// final is a boolean indicating whether the End-of-stream flag should be set,
// defaults to false.
const data = new http2.HeadersFrame(id, http2.kFakeRequestHeaders,
padlen, final);
const frame = new http2.HeadersFrame(id, payload, padlen, final);

socket.write(frame.data);
```
Expand Down

0 comments on commit 080e6d1

Please sign in to comment.