Skip to content

Commit c924adf

Browse files
vsemozhetbytMylesBorins
authored andcommitted
doc: fix code nits in common/README
1. Sync comments and code 2. Fix typos Backport-PR-URL: #20456 PR-URL: #17971 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Khaidi Chu <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 0205b3f commit c924adf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/common/README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ frame.
610610
// padlen is an 8-bit integer giving the number of padding bytes to include
611611
// final is a boolean indicating whether the End-of-stream flag should be set,
612612
// defaults to false.
613-
const data = new http2.DataFrame(id, payload, padlen, final);
613+
const frame = new http2.DataFrame(id, payload, padlen, final);
614614

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

637636
socket.write(frame.data);
638637
```

0 commit comments

Comments
 (0)