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: nodejs#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 BridgeAR committed Jan 5, 2018
1 parent 54e8f48 commit ec6ef6b
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 @@ -593,7 +593,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 @@ -611,8 +611,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 ec6ef6b

Please sign in to comment.