Skip to content

Commit 156ea83

Browse files
Fix typos
Signed-off-by: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>
1 parent 69936db commit 156ea83

5 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎bench/wasm.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ async function main () {
111111
const samples = formatNumber(iterations, 0).padStart(12);
112112
const size = formatNumber(total / (1024 * 1024), 2).padStart(8);
113113
const speed = formatNumber(bw / (1024 * 1024), 2).padStart(10);
114-
const throughtput = formatNumber(iterations / time, 2).padStart(10);
114+
const throughput = formatNumber(iterations / time, 2).padStart(10);
115115
const duration = formatNumber(time, 2).padStart(6);
116116

117117
console.log(
118-
`${label} | ${samples} samples | ${size} MB | ${speed} MB/s | ${throughtput} ops/sec | ${duration} s`
118+
`${label} | ${samples} samples | ${size} MB | ${speed} MB/s | ${throughput} ops/sec | ${duration} s`
119119
);
120120
}
121121
}

‎bin/build_wasm.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if (process.argv[2] === '--docker') {
3535
let cmd = `docker run --rm --platform=${platform.toString().trim()}`;
3636
// Try to avoid root permission problems on compiled assets
3737
// when running on linux.
38-
// It will work flawessly if uid === gid === 1000
38+
// It will work flawlessly if uid === gid === 1000
3939
// there will be some warnings otherwise.
4040
if (process.platform === 'linux') {
4141
cmd += ` --user ${process.getuid!()}:${process.getegid!()}`;

‎examples/wasm.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* A minimal Parser that mimicks a small fraction of the Node.js parser
2+
* A minimal Parser that mimics a small fraction of the Node.js parser
33
* API.
44
* To run:
55
* - `npm run build-wasm`

‎src/llhttp/constants.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ export const STATUSES = {
174174
CONNECTION_TIMEOUT: 522, // Unofficial
175175
ORIGIN_IS_UNREACHABLE: 523, // Unofficial
176176
TIMEOUT_OCCURED: 524, // Unofficial
177+
TIMEOUT_OCCURRED: 524, // Unofficial
177178
SSL_HANDSHAKE_FAILED: 525, // Unofficial
178179
INVALID_SSL_CERTIFICATE: 526, // Unofficial
179180
RAILGUN_ERROR: 527, // Unofficial

‎test/response/transfer-encoding.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ off=89 headers complete status=200 v=1/1 flags=200 content_length=0
131131
off=89 len=5 span[body]="World"
132132
```
133133

134-
## `chunkedchunked` transfer-encoding does not enable chunked enconding
134+
## `chunkedchunked` transfer-encoding does not enable chunked encoding
135135

136136
This check that the word `chunked` repeat more than once (with or without spaces) does not mistakenly enables chunked encoding.
137137

0 commit comments

Comments
 (0)