Skip to content

Commit 3bcdb3b

Browse files
vsemozhetbytMylesBorins
authored andcommitted
doc: fix code nits in common/README
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>
1 parent aa75190 commit 3bcdb3b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/common/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ frame.
616616
// padlen is an 8-bit integer giving the number of padding bytes to include
617617
// final is a boolean indicating whether the End-of-stream flag should be set,
618618
// defaults to false.
619-
const data = new http2.DataFrame(id, payload, padlen, final);
619+
const frame = new http2.DataFrame(id, payload, padlen, final);
620620

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

643642
socket.write(frame.data);
644643
```

0 commit comments

Comments
 (0)