diff options
author | Benjamin Fleischer <github@benjaminfleischer.com> | 2017-02-05 19:18:46 -0600 |
---|---|---|
committer | Brian White <mscdex@mscdex.net> | 2017-03-03 16:29:19 -0500 |
commit | 4897ae211423a6282cd7a258ede9358743784e6f (patch) | |
tree | 58c67cef3338364c81287f8f7c7ad775db72ce6a /src | |
parent | f01fd2ae7048e6cc3cc7c56c8ff9b7591a319cb3 (diff) | |
download | node-new-4897ae211423a6282cd7a258ede9358743784e6f.tar.gz |
benchmark,build,doc,lib,src,test: correct typos
PR-URL: https://github.com/nodejs/node/pull/11189
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/debug-agent.cc | 2 | ||||
-rw-r--r-- | src/node.cc | 2 | ||||
-rw-r--r-- | src/node_crypto.cc | 2 | ||||
-rw-r--r-- | src/string_search.h | 12 | ||||
-rw-r--r-- | src/tls_wrap.cc | 2 |
5 files changed, 10 insertions, 10 deletions
diff --git a/src/debug-agent.cc b/src/debug-agent.cc index 2d8ed8afc9..2ce8381fc5 100644 --- a/src/debug-agent.cc +++ b/src/debug-agent.cc @@ -182,7 +182,7 @@ void Agent::WorkerRun() { CHECK_EQ(&child_loop_, env.event_loop()); uv_run(&child_loop_, UV_RUN_DEFAULT); - // Clean-up peristent + // Clean-up persistent api_.Reset(); } isolate->Dispose(); diff --git a/src/node.cc b/src/node.cc index 525f28c114..b3e2bbe53a 100644 --- a/src/node.cc +++ b/src/node.cc @@ -3464,7 +3464,7 @@ void LoadEnvironment(Environment* env) { // (FatalException(), break on uncaught exception in debugger) // // This is not strictly necessary since it's almost impossible - // to attach the debugger fast enought to break on exception + // to attach the debugger fast enough to break on exception // thrown during process startup. try_catch.SetVerbose(true); diff --git a/src/node_crypto.cc b/src/node_crypto.cc index f959f0a33c..a06e00df16 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -913,7 +913,7 @@ void SecureContext::SetDHParam(const FunctionCallbackInfo<Value>& args) { (void) &clear_error_on_return; // Silence compiler warning. // Auto DH is not supported in openssl 1.0.1, so dhparam needs - // to be specifed explicitly + // to be specified explicitly if (args.Length() != 1) return env->ThrowTypeError("DH argument is mandatory"); diff --git a/src/string_search.h b/src/string_search.h index abc69edb87..6040888110 100644 --- a/src/string_search.h +++ b/src/string_search.h @@ -238,7 +238,7 @@ inline const void* MemrchrFill(const void* haystack, uint8_t needle, } -// Finds the first occurence of *two-byte* character pattern[0] in the string +// Finds the first occurrence of *two-byte* character pattern[0] in the string // `subject`. Does not check that the whole pattern matches. template <typename Char> inline size_t FindFirstCharacter(Vector<const Char> pattern, @@ -284,7 +284,7 @@ inline size_t FindFirstCharacter(Vector<const Char> pattern, } -// Finds the first occurance of the byte pattern[0] in string `subject`. +// Finds the first occurrence of the byte pattern[0] in string `subject`. // Does not verify that the whole pattern matches. template <> inline size_t FindFirstCharacter(Vector<const uint8_t> pattern, @@ -373,7 +373,7 @@ size_t StringSearch<Char>::BoyerMooreSearch( // Only preprocess at most kBMMaxShift last characters of pattern. size_t start = search->start_; - int* bad_char_occurence = search->bad_char_table(); + int* bad_char_occurrence = search->bad_char_table(); int* good_suffix_shift = search->good_suffix_shift_table(); Char last_char = pattern[pattern_length - 1]; @@ -383,7 +383,7 @@ size_t StringSearch<Char>::BoyerMooreSearch( size_t j = pattern_length - 1; int c; while (last_char != (c = subject[index + j])) { - int shift = j - CharOccurrence(bad_char_occurence, c); + int shift = j - CharOccurrence(bad_char_occurrence, c); index += shift; if (index > subject_length - pattern_length) { return subject.length(); @@ -399,11 +399,11 @@ size_t StringSearch<Char>::BoyerMooreSearch( // we have matched more than our tables allow us to be smart about. // Fall back on BMH shift. index += pattern_length - 1 - - CharOccurrence(bad_char_occurence, + CharOccurrence(bad_char_occurrence, static_cast<Char>(last_char)); } else { int gs_shift = good_suffix_shift[j + 1]; - int bc_occ = CharOccurrence(bad_char_occurence, c); + int bc_occ = CharOccurrence(bad_char_occurrence, c); int shift = j - bc_occ; if (gs_shift > shift) { shift = gs_shift; diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc index d56128fec6..581e017ef8 100644 --- a/src/tls_wrap.cc +++ b/src/tls_wrap.cc @@ -123,7 +123,7 @@ void TLSWrap::InitSSL() { SSL_set_bio(ssl_, enc_in_, enc_out_); - // NOTE: This could be overriden in SetVerifyMode + // NOTE: This could be overridden in SetVerifyMode SSL_set_verify(ssl_, SSL_VERIFY_NONE, crypto::VerifyCallback); #ifdef SSL_MODE_RELEASE_BUFFERS |