Skip to content

Commit 3789a87

Browse files
IvanGoncharovleebyron
authored andcommitted
Fix more typos (#1526)
1 parent b731468 commit 3789a87

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

resources/benchmark.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ function findFiles(cwd, pattern) {
7171
}
7272

7373
// Run a given benchmark test with the provided revisions.
74-
function runBenchmark(benchmark, enviroments) {
75-
const modules = enviroments.map(({distPath}) =>
74+
function runBenchmark(benchmark, environments) {
75+
const modules = environments.map(({distPath}) =>
7676
require(path.join(distPath, benchmark)),
7777
);
7878
const suite = new Suite(modules[0].name, {
@@ -90,8 +90,8 @@ function runBenchmark(benchmark, enviroments) {
9090
beautifyBenchmark.log();
9191
},
9292
});
93-
for (let i = 0; i < enviroments.length; i++) {
94-
suite.add(enviroments[i].revision, modules[i].measure);
93+
for (let i = 0; i < environments.length; i++) {
94+
suite.add(environments[i].revision, modules[i].measure);
9595
}
9696
suite.run({ async: false });
9797
}
@@ -116,10 +116,10 @@ function prepareAndRunBenchmarks(benchmarkPatterns, revisions) {
116116
return;
117117
}
118118

119-
const enviroments = revisions.map(
119+
const environments = revisions.map(
120120
revision => ({ revision, distPath: prepareRevision(revision)})
121121
);
122-
benchmarks.forEach(benchmark => runBenchmark(benchmark, enviroments));
122+
benchmarks.forEach(benchmark => runBenchmark(benchmark, environments));
123123
}
124124

125125
function getArguments(argv) {

src/error/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GraphQL Errors
22
--------------
33

4-
The `graphql/error` module is responsible for creating and formating
4+
The `graphql/error` module is responsible for creating and formatting
55
GraphQL errors.
66

77
```js

0 commit comments

Comments
 (0)