Skip to content

Commit d7c74f7

Browse files
authored
chore: fixed typos (nodejs#1695)
1 parent eead2b8 commit d7c74f7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

benchmarks/benchmark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,14 @@ function printResults (results) {
112112
let last
113113

114114
const rows = Object.entries(results)
115-
// If any failed, put on the top of the list, otherwise order by mean, ascendin
115+
// If any failed, put on the top of the list, otherwise order by mean, ascending
116116
.sort((a, b) => (!a[1].success ? -1 : b[1].mean - a[1].mean))
117117
.map(([name, result]) => {
118118
if (!result.success) {
119119
return [name, result.size, 'Errored', 'N/A', 'N/A']
120120
}
121121

122-
// Calculate throughtput and relative performance
122+
// Calculate throughput and relative performance
123123
const { size, mean, standardError } = result
124124
const relative = last !== 0 ? (last / mean - 1) * 100 : 0
125125

benchmarks/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if (cluster.isPrimary) {
1616
try {
1717
unlinkSync(socketPath)
1818
} catch (_) {
19-
// Do not nothing if the socket does not exist
19+
// Do nothing if the socket does not exist
2020
}
2121

2222
for (let i = 0; i < workers; i++) {

lib/api/api-stream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class StreamHandler extends AsyncResource {
106106
}
107107

108108
res.on('drain', resume)
109-
// TODO: Avoid finished. It registers an unecessary amount of listeners.
109+
// TODO: Avoid finished. It registers an unnecessary amount of listeners.
110110
finished(res, { readable: false }, (err) => {
111111
const { callback, res, opaque, trailers, abort } = this
112112

0 commit comments

Comments
 (0)