From af0c1f287d31ca3a641151df60baa7371635f508 Mon Sep 17 00:00:00 2001 From: John Doe Date: Thu, 4 Oct 2018 18:56:04 -0700 Subject: [PATCH] Typos (#20271) * oportunistically -> opportunistically * oppportunity -> opportunity * Oppporunity -> Opportunity * optinal -> optional * optimisitic -> optimistic * optionaly -> optionally * origianl -> original * orignally -> originally * otheriwse -> otherwise * otherrwise -> otherwise --- src/debug/di/divalue.cpp | 2 +- src/debug/ee/controller.cpp | 2 +- src/debug/ildbsymlib/symread.cpp | 2 +- src/gc/handletablecore.cpp | 2 +- src/jit/flowgraph.cpp | 2 +- src/jit/inlinepolicy.cpp | 2 +- src/md/compiler/custattr_emit.cpp | 2 +- src/md/winmd/adapter.cpp | 2 +- src/pal/tests/palsuite/threading/DuplicateHandle/test7/test7.cpp | 2 +- src/vm/codeversion.cpp | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/debug/di/divalue.cpp b/src/debug/di/divalue.cpp index 50ecd68..59cd382 100644 --- a/src/debug/di/divalue.cpp +++ b/src/debug/di/divalue.cpp @@ -1592,7 +1592,7 @@ void * CordbReferenceValue::GetObjectAddress(MemoryRange localValue) void CordbReferenceValue::UpdateTypeInfo() { // If the object type that we got back is different than the one we sent, then it means that we - // orignally had a CLASS and now have something more specific, like a SDARRAY, MDARRAY, or STRING or + // originally had a CLASS and now have something more specific, like a SDARRAY, MDARRAY, or STRING or // a constructed type. // Update our signature accordingly, which is okay since we always have a copy of our sig. This // ensures that the reference's signature accurately reflects what the Runtime knows it's pointing diff --git a/src/debug/ee/controller.cpp b/src/debug/ee/controller.cpp index d88eacd..9d45037 100644 --- a/src/debug/ee/controller.cpp +++ b/src/debug/ee/controller.cpp @@ -2904,7 +2904,7 @@ DPOSS_ACTION DebuggerController::DispatchPatchOrSingleStep(Thread *thread, CONTE thread, TY_SHORT_CIRCUIT); - // We will only come back here on a RemapOppporunity that wasn't taken, or on a RemapComplete. + // We will only come back here on a RemapOpportunity that wasn't taken, or on a RemapComplete. // If we processed a RemapComplete (which returns TPR_IGNORE_AND_STOP), then don't want to handle // additional breakpoints on the current line because we've already effectively executed to that point // and would have hit them already. If they are new, we also don't want to hit them because eg. if are diff --git a/src/debug/ildbsymlib/symread.cpp b/src/debug/ildbsymlib/symread.cpp index 3fe3c8c..4a3015a 100644 --- a/src/debug/ildbsymlib/symread.cpp +++ b/src/debug/ildbsymlib/symread.cpp @@ -2324,7 +2324,7 @@ HRESULT SymScope::GetNamespaces( ULONG32 cNameSpaces, // [optional] number of entries pNameSpaces ULONG32 *pcNameSpaces, // [optional, out] Maximum number of Namespace - ISymUnmanagedNamespace *pNameSpaces[] // [optinal] array to store namespaces into + ISymUnmanagedNamespace *pNameSpaces[] // [optional] array to store namespaces into ) { HRESULT hr = NOERROR; diff --git a/src/gc/handletablecore.cpp b/src/gc/handletablecore.cpp index 0189438..9fadbc2 100644 --- a/src/gc/handletablecore.cpp +++ b/src/gc/handletablecore.cpp @@ -1845,7 +1845,7 @@ void SegmentTrimExcessPages(TableSegment *pSegment) // compute the address for the new decommit line size_t dwDecommitAddr = dwLo - OS_PAGE_SIZE; - // assume a decommit line of zero until we know otheriwse + // assume a decommit line of zero until we know otherwise uDecommitLine = 0; // if the address is within the handle area then compute the line from the address diff --git a/src/jit/flowgraph.cpp b/src/jit/flowgraph.cpp index 64fcc8c..f8fe15d 100644 --- a/src/jit/flowgraph.cpp +++ b/src/jit/flowgraph.cpp @@ -23054,7 +23054,7 @@ GenTree* Compiler::fgInlinePrependStatements(InlineInfo* inlineInfo) /* argBashTmpNode is non-NULL iff the argument's value was referenced exactly once by the original IL. This offers an - oppportunity to avoid an intermediate temp and just insert + opportunity to avoid an intermediate temp and just insert the original argument tree. However, if the temp node has been cloned somewhere while diff --git a/src/jit/inlinepolicy.cpp b/src/jit/inlinepolicy.cpp index 45dc96f..af727c3 100644 --- a/src/jit/inlinepolicy.cpp +++ b/src/jit/inlinepolicy.cpp @@ -658,7 +658,7 @@ double DefaultPolicy::DetermineMultiplier() multiplier += 3.0; JITDUMP("\nInline candidate has const arg that feeds a conditional. Multiplier increased to %g.", multiplier); } - // For prejit roots we do not see the call sites. To be suitably optimisitic + // For prejit roots we do not see the call sites. To be suitably optimistic // assume that call sites may pass constants. else if (m_IsPrejitRoot && ((m_ArgFeedsConstantTest > 0) || (m_ArgFeedsTest > 0))) { diff --git a/src/md/compiler/custattr_emit.cpp b/src/md/compiler/custattr_emit.cpp index 3e23600..507945c 100644 --- a/src/md/compiler/custattr_emit.cpp +++ b/src/md/compiler/custattr_emit.cpp @@ -1163,7 +1163,7 @@ HRESULT RegMeta::_HandleKnownCustomAttribute( // S_OK or error. dwFlags |= pmSupportsLastError; } - // If an entrypoint name was specified, use it, otherrwise grab the name from the member. + // If an entrypoint name was specified, use it, otherwise grab the name from the member. LPCWSTR wzEntry; if (qNamedArgs[DI_EntryPoint].val.type.tag) { diff --git a/src/md/winmd/adapter.cpp b/src/md/winmd/adapter.cpp index 11db22d..7710878 100644 --- a/src/md/winmd/adapter.cpp +++ b/src/md/winmd/adapter.cpp @@ -1101,7 +1101,7 @@ HRESULT WinMDAdapter::ModifyExportedTypeName( //------------------------------------------------------------------------------ -// We must optionaly add an assembly ref for System.Numerics.Vectors.dll since this assembly is not available +// We must optionally add an assembly ref for System.Numerics.Vectors.dll since this assembly is not available // on downlevel platforms. // // This function assumes that System.Numerics.Vectors.dll is the last assembly that diff --git a/src/pal/tests/palsuite/threading/DuplicateHandle/test7/test7.cpp b/src/pal/tests/palsuite/threading/DuplicateHandle/test7/test7.cpp index bd09283..7074d37 100644 --- a/src/pal/tests/palsuite/threading/DuplicateHandle/test7/test7.cpp +++ b/src/pal/tests/palsuite/threading/DuplicateHandle/test7/test7.cpp @@ -121,7 +121,7 @@ int __cdecl main(int argc, char* argv[]) Fail(""); } - /* Get the priority of the origianl thread, and + /* Get the priority of the original thread, and * compare it to what the duplicate was set to.*/ finalPriority = GetThreadPriority(hThread); if (finalPriority != THREAD_PRIORITY_HIGHEST) diff --git a/src/vm/codeversion.cpp b/src/vm/codeversion.cpp index 06451e9..e3425c3 100644 --- a/src/vm/codeversion.cpp +++ b/src/vm/codeversion.cpp @@ -1522,7 +1522,7 @@ HRESULT MethodDescVersioningState::UndoJumpStampNativeCode(BOOL fEESuspended) // (fContentionPossible == TRUE) // This method will attempt to alter the jump-stamp even if the caller has not prevented // contention, but there is no guarantee it will be succesful. When the caller has prevented -// contention, then success is assured. Callers may oportunistically try without +// contention, then success is assured. Callers may opportunistically try without // EE suspension, and then upgrade to EE suspension if the first attempt fails. // // Assumptions: -- 2.7.4