Skip to content

Commit ec6ef6b

Browse files
vsemozhetbytBridgeAR
authored andcommitted
doc: fix code nits in common/README
1. Sync comments and code 2. Fix typos 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 54e8f48 commit ec6ef6b

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
@@ -593,7 +593,7 @@ frame.
593593
// padlen is an 8-bit integer giving the number of padding bytes to include
594594
// final is a boolean indicating whether the End-of-stream flag should be set,
595595
// defaults to false.
596-
const data = new http2.DataFrame(id, payload, padlen, final);
596+
const frame = new http2.DataFrame(id, payload, padlen, final);
597597

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

617616
socket.write(frame.data);
618617
```

0 commit comments

Comments
 (0)