Skip to content

Commit f56ca30

Browse files
bf4addaleax
authored andcommitted
benchmark,build,doc,lib,src,test: correct typos
PR-URL: #11189 Reviewed-By: Brian White <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]>
1 parent f972bd8 commit f56ca30

23 files changed

+36
-36
lines changed

benchmark/compare.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ statistics = ddply(dat, "name", function(subdat) {
4747

4848
p.value = NA;
4949
confidence = 'NA';
50-
# Check if there is enough data to calulate the calculate the p-value
50+
# Check if there is enough data to calculate the calculate the p-value
5151
if (length(old.rate) > 1 && length(new.rate) > 1) {
5252
# Perform a statistics test to see of there actually is a difference in
5353
# performance.

benchmark/compare.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const BenchmarkProgress = require('./_benchmark_progress.js');
99
// Parse arguments
1010
//
1111
const cli = CLI(`usage: ./node compare.js [options] [--] <category> ...
12-
Run each benchmark in the <category> directory many times using two diffrent
12+
Run each benchmark in the <category> directory many times using two different
1313
node versions. More than one <category> directory can be specified.
1414
The output is formatted as csv, which can be processed using for
1515
example 'compare.R'.

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def warn(msg):
503503
prefix = '\033[1m\033[93mWARNING\033[0m' if os.isatty(1) else 'WARNING'
504504
print('%s: %s' % (prefix, msg))
505505

506-
# track if warnings occured
506+
# track if warnings occurred
507507
warn.warned = False
508508

509509
def b(value):

doc/api_assets/dnt_helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function _dntEnabled(dnt, userAgent) {
2626
var fxMatch = ua.match(/Firefox\/(\d+)/);
2727
var ieRegEx = /MSIE|Trident/i;
2828
var isIE = ieRegEx.test(ua);
29-
// Matches from Windows up to the first occurance of ; un-greedily
29+
// Matches from Windows up to the first occurrence of ; un-greedily
3030
// http://www.regexr.com/3c2el
3131
var platform = ua.match(/Windows.+?(?=;)/g);
3232

doc/changelogs/CHANGELOG_ARCHIVE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3025,7 +3025,7 @@ https://github.com/nodejs/node/commit/311d7dee19034ff1c6bc9098c36973b8d687eaba
30253025
* After V8 heap is compact, don't use a timer every 2 seconds.
30263026

30273027
* Improve nextTick implementation.
3028-
* Add primative support for Upgrading HTTP connections.
3028+
* Add primitive support for Upgrading HTTP connections.
30293029
(See commit log for docs 760bba5)
30303030

30313031
* Add timeout and maxBuffer options to child_process.exec

doc/changelogs/CHANGELOG_V5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ This is a security release. All Node.js users should consult the security releas
215215
### Notable changes
216216

217217
**http**:
218-
* Enclose IPv6 Host header in square brackets. This will enable proper separation of the host adress from any port reference (Mihai Potra) [#5314](https://github.com/nodejs/node/pull/5314)
218+
* Enclose IPv6 Host header in square brackets. This will enable proper separation of the host address from any port reference (Mihai Potra) [#5314](https://github.com/nodejs/node/pull/5314)
219219

220220
**path**:
221221
* Make win32.isAbsolute more consistent (Brian White) [#6028](https://github.com/nodejs/node/pull/6028)

src/debug-agent.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ void Agent::WorkerRun() {
182182
CHECK_EQ(&child_loop_, env.event_loop());
183183
uv_run(&child_loop_, UV_RUN_DEFAULT);
184184

185-
// Clean-up peristent
185+
// Clean-up persistent
186186
api_.Reset();
187187
}
188188
isolate->Dispose();

src/node.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3444,7 +3444,7 @@ void LoadEnvironment(Environment* env) {
34443444
// (FatalException(), break on uncaught exception in debugger)
34453445
//
34463446
// This is not strictly necessary since it's almost impossible
3447-
// to attach the debugger fast enought to break on exception
3447+
// to attach the debugger fast enough to break on exception
34483448
// thrown during process startup.
34493449
try_catch.SetVerbose(true);
34503450

src/node_crypto.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ void SecureContext::SetDHParam(const FunctionCallbackInfo<Value>& args) {
913913
(void) &clear_error_on_return; // Silence compiler warning.
914914

915915
// Auto DH is not supported in openssl 1.0.1, so dhparam needs
916-
// to be specifed explicitly
916+
// to be specified explicitly
917917
if (args.Length() != 1)
918918
return env->ThrowTypeError("DH argument is mandatory");
919919

src/string_search.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ inline const void* MemrchrFill(const void* haystack, uint8_t needle,
238238
}
239239

240240

241-
// Finds the first occurence of *two-byte* character pattern[0] in the string
241+
// Finds the first occurrence of *two-byte* character pattern[0] in the string
242242
// `subject`. Does not check that the whole pattern matches.
243243
template <typename Char>
244244
inline size_t FindFirstCharacter(Vector<const Char> pattern,
@@ -284,7 +284,7 @@ inline size_t FindFirstCharacter(Vector<const Char> pattern,
284284
}
285285

286286

287-
// Finds the first occurance of the byte pattern[0] in string `subject`.
287+
// Finds the first occurrence of the byte pattern[0] in string `subject`.
288288
// Does not verify that the whole pattern matches.
289289
template <>
290290
inline size_t FindFirstCharacter(Vector<const uint8_t> pattern,
@@ -373,7 +373,7 @@ size_t StringSearch<Char>::BoyerMooreSearch(
373373
// Only preprocess at most kBMMaxShift last characters of pattern.
374374
size_t start = search->start_;
375375

376-
int* bad_char_occurence = search->bad_char_table();
376+
int* bad_char_occurrence = search->bad_char_table();
377377
int* good_suffix_shift = search->good_suffix_shift_table();
378378

379379
Char last_char = pattern[pattern_length - 1];
@@ -383,7 +383,7 @@ size_t StringSearch<Char>::BoyerMooreSearch(
383383
size_t j = pattern_length - 1;
384384
int c;
385385
while (last_char != (c = subject[index + j])) {
386-
int shift = j - CharOccurrence(bad_char_occurence, c);
386+
int shift = j - CharOccurrence(bad_char_occurrence, c);
387387
index += shift;
388388
if (index > subject_length - pattern_length) {
389389
return subject.length();
@@ -399,11 +399,11 @@ size_t StringSearch<Char>::BoyerMooreSearch(
399399
// we have matched more than our tables allow us to be smart about.
400400
// Fall back on BMH shift.
401401
index += pattern_length - 1 -
402-
CharOccurrence(bad_char_occurence,
402+
CharOccurrence(bad_char_occurrence,
403403
static_cast<Char>(last_char));
404404
} else {
405405
int gs_shift = good_suffix_shift[j + 1];
406-
int bc_occ = CharOccurrence(bad_char_occurence, c);
406+
int bc_occ = CharOccurrence(bad_char_occurrence, c);
407407
int shift = j - bc_occ;
408408
if (gs_shift > shift) {
409409
shift = gs_shift;

0 commit comments

Comments
 (0)