From e47c1273b2a0acec709296f49cbe9cc44931d5b7 Mon Sep 17 00:00:00 2001 From: Ofer Zelig Date: Thu, 4 Dec 2025 12:48:19 +0200 Subject: [PATCH] Fix typos --- docs/design/features/RandomizedAllocationSampling.md | 2 +- src/coreclr/jit/codegenarm64.cpp | 2 +- .../src/System/Runtime/CachedInterfaceDispatch.cs | 2 +- .../tools/Common/Compiler/ObjectWriter/ElfObjectWriter.cs | 2 +- .../Compiler/ObjectWriter/ElfObjectWriter.Aot.cs | 2 +- .../managed/Microsoft.NET.HostModel/MachO/MachObjectFile.cs | 4 ++-- .../src/System/Collections/Generic/OrderedDictionary.cs | 4 ++-- .../src/System/Diagnostics/DiagnosticsConfiguration.cs | 2 +- .../System.Diagnostics.Process/tests/ProcessTests.cs | 2 +- .../src/System/Formats/Tar/PaxTarEntry.cs | 2 +- .../tests/FunctionalTests/UnixPingUtilityTests.cs | 2 +- .../tests/FunctionalTests/IPNetworkTest.cs | 2 +- .../src/System/Diagnostics/Tracing/EventProvider.cs | 2 +- .../src/System/Globalization/CultureData.Browser.cs | 2 +- .../src/System/Text/Ascii.CaseConversion.cs | 6 +++--- .../CustomConverterTests.Polymorphic.cs | 2 +- .../src/System/Text/RegularExpressions/RegexCompiler.cs | 2 +- .../Text/RegularExpressions/Symbolic/MintermClassifier.cs | 2 +- src/mono/mono/metadata/class-init.c | 4 ++-- src/mono/mono/metadata/marshal.c | 2 +- .../System.Security.Cryptography.Native/pal_evp_pkey_rsa.c | 2 +- .../exceptions/regressions/V1/SEH/coverage/Exceptions.cs | 2 +- .../profiler/dynamicoptimization/DynamicOptimization.cs | 2 +- 23 files changed, 28 insertions(+), 28 deletions(-) diff --git a/docs/design/features/RandomizedAllocationSampling.md b/docs/design/features/RandomizedAllocationSampling.md index 61d41c0ffd10c9..0ae16760b7ee50 100644 --- a/docs/design/features/RandomizedAllocationSampling.md +++ b/docs/design/features/RandomizedAllocationSampling.md @@ -192,7 +192,7 @@ bool GetNextTrialResult(CLRRandom* pRandom) Rather than generating `_cachedFailedTrials` by doing many independent queries to a random number generator we can use some math to speed this up. The probability `_cachedFailedTrials` has some particular value `X` is given by the [Geometric distribution](https://en.wikipedia.org/wiki/Geometric_distribution). We can use [Inverse Transform Sampling](https://en.wikipedia.org/wiki/Inverse_transform_sampling) to generate random values for this distribution directly. The CDF for the Geometric distribution is `1-(1-p)^(floor(x)+1)` which means the inverse is `floor(ln(1-y)/ln(1-p))`. -We've been using BigInteger so far because mathmatically there is a non-zero probability of getting an arbitrarily large number of failed trials in a row. In practice however our PRNG has its outputs constrained to return a floating point number with value k/MAX_INT for an integer value of k between 0 and MAX_INT-1. The largest value PopulateTrials() can return under these constraints is ~2.148M which means a 32bit integer can easily accomodate the value. The perfect mathematical model of the Geometric distribution has a 0.00000005% chance of getting a larger run of failed trials but our PRNG rounds that incredibly unlikely case to zero probability. +We've been using BigInteger so far because mathematically there is a non-zero probability of getting an arbitrarily large number of failed trials in a row. In practice however our PRNG has its outputs constrained to return a floating point number with value k/MAX_INT for an integer value of k between 0 and MAX_INT-1. The largest value PopulateTrials() can return under these constraints is ~2.148M which means a 32bit integer can easily accommodate the value. The perfect mathematical model of the Geometric distribution has a 0.00000005% chance of getting a larger run of failed trials but our PRNG rounds that incredibly unlikely case to zero probability. Both of these changes combined give the pseudo-code diff --git a/src/coreclr/jit/codegenarm64.cpp b/src/coreclr/jit/codegenarm64.cpp index fd5b40d56403fe..4472b7ff7c44d3 100644 --- a/src/coreclr/jit/codegenarm64.cpp +++ b/src/coreclr/jit/codegenarm64.cpp @@ -4892,7 +4892,7 @@ void CodeGen::genCodeForSelect(GenTreeOp* tree) emit->emitIns_R_R_R_COND(ins, attr, targetReg, srcReg1, srcReg2, JumpKindToInsCond(prevDesc.jumpKind1)); } - // Some floating point comparision conditions require an additional condition check. + // Some floating point comparison conditions require an additional condition check. // These checks are emitted as a subsequent check using GT_AND or GT_OR nodes. // e.g., using GT_OR => `dest = (cond1 || cond2) ? src1 : src2` // GT_AND => `dest = (cond1 && cond2) ? src1 : src2` diff --git a/src/coreclr/nativeaot/Runtime.Base/src/System/Runtime/CachedInterfaceDispatch.cs b/src/coreclr/nativeaot/Runtime.Base/src/System/Runtime/CachedInterfaceDispatch.cs index 22e8b674b57f95..81e9aacf3efa45 100644 --- a/src/coreclr/nativeaot/Runtime.Base/src/System/Runtime/CachedInterfaceDispatch.cs +++ b/src/coreclr/nativeaot/Runtime.Base/src/System/Runtime/CachedInterfaceDispatch.cs @@ -42,7 +42,7 @@ private static IntPtr RhpResolveInterfaceMethod(object pObject, IntPtr pCell) { if (pObject == null) { - // Optimizer may perform code motion on dispatch such that it occurs independant of + // Optimizer may perform code motion on dispatch such that it occurs independent of // null check on "this" pointer. Allow for this case by returning back an invalid pointer. return IntPtr.Zero; } diff --git a/src/coreclr/tools/Common/Compiler/ObjectWriter/ElfObjectWriter.cs b/src/coreclr/tools/Common/Compiler/ObjectWriter/ElfObjectWriter.cs index 8adb40bec10943..8cdeb8ee7aa6b9 100644 --- a/src/coreclr/tools/Common/Compiler/ObjectWriter/ElfObjectWriter.cs +++ b/src/coreclr/tools/Common/Compiler/ObjectWriter/ElfObjectWriter.cs @@ -29,7 +29,7 @@ namespace ILCompiler.ObjectWriter /// (> 65279). Some of the fields in the ELF file header are moved to the /// first (NULL) section header. The symbol table that is normally a single /// section in the file is extended with a second .symtab_shndx section - /// to accomodate the section indexes that don't fit within the regular + /// to accommodate the section indexes that don't fit within the regular /// section number field. /// internal sealed partial class ElfObjectWriter : UnixObjectWriter diff --git a/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ObjectWriter/ElfObjectWriter.Aot.cs b/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ObjectWriter/ElfObjectWriter.Aot.cs index 9652211fa0ddc2..8550b20e19c6b2 100644 --- a/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ObjectWriter/ElfObjectWriter.Aot.cs +++ b/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ObjectWriter/ElfObjectWriter.Aot.cs @@ -29,7 +29,7 @@ namespace ILCompiler.ObjectWriter /// (> 65279). Some of the fields in the ELF file header are moved to the /// first (NULL) section header. The symbol table that is normally a single /// section in the file is extended with a second .symtab_shndx section - /// to accomodate the section indexes that don't fit within the regular + /// to accommodate the section indexes that don't fit within the regular /// section number field. /// internal sealed partial class ElfObjectWriter : UnixObjectWriter diff --git a/src/installer/managed/Microsoft.NET.HostModel/MachO/MachObjectFile.cs b/src/installer/managed/Microsoft.NET.HostModel/MachO/MachObjectFile.cs index 407eeeaf022d3b..2a29c3c997fe8d 100644 --- a/src/installer/managed/Microsoft.NET.HostModel/MachO/MachObjectFile.cs +++ b/src/installer/managed/Microsoft.NET.HostModel/MachO/MachObjectFile.cs @@ -108,7 +108,7 @@ public static MachObjectFile Create(IMachOFileReader file) public bool HasSignature => !_codeSignatureLoadCommand.Command.IsDefault; /// - /// Adds or replaces the code signature load command and modifies the __LINKEDIT segment size to accomodate the signature. + /// Adds or replaces the code signature load command and modifies the __LINKEDIT segment size to accommodate the signature. /// Writes the EmbeddedSignature blob to the file. /// Returns the new size of the file (the end of the signature blob). /// @@ -430,7 +430,7 @@ private void AllocateCodeSignatureLoadCommand(string identifier) if (_codeSignatureLoadCommand.Command.IsDefault) { - // Update the header to accomodate the new code signature load command + // Update the header to accommodate the new code signature load command _header.NumberOfCommands += 1; _header.SizeOfCommands += (uint)sizeof(LinkEditLoadCommand); if (_header.SizeOfCommands > _lowestSectionOffset) diff --git a/src/libraries/System.Collections/src/System/Collections/Generic/OrderedDictionary.cs b/src/libraries/System.Collections/src/System/Collections/Generic/OrderedDictionary.cs index 7e806774efbbf3..58d8f2e4fef46f 100644 --- a/src/libraries/System.Collections/src/System/Collections/Generic/OrderedDictionary.cs +++ b/src/libraries/System.Collections/src/System/Collections/Generic/OrderedDictionary.cs @@ -438,7 +438,7 @@ private bool TryInsert(int index, TKey key, TValue value, InsertionBehavior beha Entry[]? entries = _entries; Debug.Assert(entries is not null); - // Grow capacity if necessary to accomodate the extra entry. + // Grow capacity if necessary to accommodate the extra entry. if (entries.Length == _count) { Resize(HashHelpers.ExpandPrime(entries.Length)); @@ -1079,7 +1079,7 @@ private void RehashIfNecessary(uint collisionCount, Entry[] entries) private void Resize(int newSize, bool forceNewHashCodes = false) { Debug.Assert(!forceNewHashCodes || !typeof(TKey).IsValueType, "Value types never rehash."); - Debug.Assert(newSize >= _count, "The requested size must accomodate all of the current elements."); + Debug.Assert(newSize >= _count, "The requested size must accommodate all of the current elements."); // Create the new arrays. We allocate both prior to storing either; in case one of the allocation fails, // we want to avoid corrupting the data structure. diff --git a/src/libraries/System.Configuration.ConfigurationManager/src/System/Diagnostics/DiagnosticsConfiguration.cs b/src/libraries/System.Configuration.ConfigurationManager/src/System/Diagnostics/DiagnosticsConfiguration.cs index 868298fa7f7476..7a5f82e7a3d682 100644 --- a/src/libraries/System.Configuration.ConfigurationManager/src/System/Diagnostics/DiagnosticsConfiguration.cs +++ b/src/libraries/System.Configuration.ConfigurationManager/src/System/Diagnostics/DiagnosticsConfiguration.cs @@ -157,7 +157,7 @@ internal static void Refresh() { ConfigurationManager.RefreshSection("system.diagnostics"); - // There might still be some persistant state left behind for + // There might still be some persistent state left behind for // ConfigPropertyCollection (for ex, swtichelements), probably for perf. // We need to explicitly cleanup any unrecognized attributes that we // have added during last deserialization, so that they are re-added diff --git a/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs b/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs index 88d8c78073ebb8..086ad89f0d53ad 100644 --- a/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs +++ b/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs @@ -996,7 +996,7 @@ public void UserProcessorTime_GetNotStarted_ThrowsInvalidOperationException() [Fact] [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "libproc is not supported on iOS/tvOS")] - public void PriviledgedProcessorTime_GetNotStarted_ThrowsInvalidOperationException() + public void PrivilegedProcessorTime_GetNotStarted_ThrowsInvalidOperationException() { var process = new Process(); Assert.Throws(() => process.PrivilegedProcessorTime); diff --git a/src/libraries/System.Formats.Tar/src/System/Formats/Tar/PaxTarEntry.cs b/src/libraries/System.Formats.Tar/src/System/Formats/Tar/PaxTarEntry.cs index 4f1e3f0b4fe022..d8edb5b5f03602 100644 --- a/src/libraries/System.Formats.Tar/src/System/Formats/Tar/PaxTarEntry.cs +++ b/src/libraries/System.Formats.Tar/src/System/Formats/Tar/PaxTarEntry.cs @@ -79,7 +79,7 @@ public PaxTarEntry(TarEntryType entryType, string entryName, IEnumerable-or- /// The entry type of is not supported for conversion to the PAX format. /// - /// When converting a to using this constructor, the and values will get transfered to the dictionary only if their values are not (which is ). + /// When converting a to using this constructor, the and values will get transferred to the dictionary only if their values are not (which is ). public PaxTarEntry(TarEntry other) : base(other, TarEntryFormat.Pax) { diff --git a/src/libraries/System.Net.Ping/tests/FunctionalTests/UnixPingUtilityTests.cs b/src/libraries/System.Net.Ping/tests/FunctionalTests/UnixPingUtilityTests.cs index b34f45bdd881f7..40c8485ec813c3 100644 --- a/src/libraries/System.Net.Ping/tests/FunctionalTests/UnixPingUtilityTests.cs +++ b/src/libraries/System.Net.Ping/tests/FunctionalTests/UnixPingUtilityTests.cs @@ -60,7 +60,7 @@ public static void TimeoutIsRespected(int timeout) [InlineData(1)] [InlineData(50)] [InlineData(1000)] - [PlatformSpecific(TestPlatforms.AnyUnix)] // Tests un-priviledged Ping support on Unix + [PlatformSpecific(TestPlatforms.AnyUnix)] // Tests un-privileged Ping support on Unix public static async Task PacketSizeIsRespected(int payloadSize) { var stdOutLines = new List(); diff --git a/src/libraries/System.Net.Primitives/tests/FunctionalTests/IPNetworkTest.cs b/src/libraries/System.Net.Primitives/tests/FunctionalTests/IPNetworkTest.cs index 3547c24203de9d..875614e32b05cd 100644 --- a/src/libraries/System.Net.Primitives/tests/FunctionalTests/IPNetworkTest.cs +++ b/src/libraries/System.Net.Primitives/tests/FunctionalTests/IPNetworkTest.cs @@ -109,7 +109,7 @@ public void Constructor_NullIPAddress_ThrowsArgumentNullException() [InlineData("192.168.0.1", 33)] [InlineData("::", -1)] [InlineData("ffff::", 129)] - public void Constructor_PrefixLenghtOutOfRange_ThrowsArgumentOutOfRangeException(string ipStr, int prefixLength) + public void Constructor_PrefixLengthOutOfRange_ThrowsArgumentOutOfRangeException(string ipStr, int prefixLength) { IPAddress address = IPAddress.Parse(ipStr); Assert.Throws(() => new IPNetwork(address, prefixLength)); diff --git a/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventProvider.cs b/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventProvider.cs index a11dc0bfdd98bc..c832978da36b1d 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventProvider.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventProvider.cs @@ -130,7 +130,7 @@ protected virtual void Dispose(bool disposing) { // // explicit cleanup is done by calling Dispose with true from - // Dispose() or Close(). The disposing arguement is ignored because there + // Dispose() or Close(). The disposing argument is ignored because there // are no unmanaged resources. // The finalizer calls Dispose with false. // diff --git a/src/libraries/System.Private.CoreLib/src/System/Globalization/CultureData.Browser.cs b/src/libraries/System.Private.CoreLib/src/System/Globalization/CultureData.Browser.cs index 7cf51d7d8f12f9..9faaa42cacaf80 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Globalization/CultureData.Browser.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Globalization/CultureData.Browser.cs @@ -52,7 +52,7 @@ private unsafe (string, string) JSGetLocaleInfo(string cultureName, string local string result = new string(buffer, 0, resultLength); string[] subresults = result.Split("##"); if (subresults.Length == 0) - throw new Exception("LocaleInfo recieved from the Browser is in incorrect format."); + throw new Exception("LocaleInfo received from the Browser is in incorrect format."); if (subresults.Length == 1) return (subresults[0], ""); // Neutral culture return (subresults[0], subresults[1]); diff --git a/src/libraries/System.Private.CoreLib/src/System/Text/Ascii.CaseConversion.cs b/src/libraries/System.Private.CoreLib/src/System/Text/Ascii.CaseConversion.cs index 3db74d75044f4e..66795fcc68977e 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Text/Ascii.CaseConversion.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Text/Ascii.CaseConversion.cs @@ -249,10 +249,10 @@ private static unsafe nuint ChangeCase(TFrom* pSrc, TTo* pD TFrom SourceSignedMinValue = TFrom.CreateTruncating(1 << (8 * sizeof(TFrom) - 1)); Vector128 subtractionVector = Vector128.Create(conversionIsToUpper ? (SourceSignedMinValue + TFrom.CreateTruncating('a')) : (SourceSignedMinValue + TFrom.CreateTruncating('A'))); - Vector128 comparisionVector = Vector128.Create(SourceSignedMinValue + TFrom.CreateTruncating(26 /* A..Z or a..z */)); + Vector128 comparisonVector = Vector128.Create(SourceSignedMinValue + TFrom.CreateTruncating(26 /* A..Z or a..z */)); Vector128 caseConversionVector = Vector128.Create(TFrom.CreateTruncating(0x20)); // works both directions - Vector128 matches = SignedLessThan((srcVector - subtractionVector), comparisionVector); + Vector128 matches = SignedLessThan((srcVector - subtractionVector), comparisonVector); srcVector ^= (matches & caseConversionVector); // Now write to the destination. @@ -298,7 +298,7 @@ private static unsafe nuint ChangeCase(TFrom* pSrc, TTo* pD // Now find matching characters and perform case conversion. - matches = SignedLessThan((srcVector - subtractionVector), comparisionVector); + matches = SignedLessThan((srcVector - subtractionVector), comparisonVector); srcVector ^= (matches & caseConversionVector); // Now write to the destination. diff --git a/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/CustomConverterTests/CustomConverterTests.Polymorphic.cs b/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/CustomConverterTests/CustomConverterTests.Polymorphic.cs index cbf48b487946ee..25663c2d749c90 100644 --- a/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/CustomConverterTests/CustomConverterTests.Polymorphic.cs +++ b/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/CustomConverterTests/CustomConverterTests.Polymorphic.cs @@ -291,7 +291,7 @@ public static void PolymorphicBaseClassConverter_IsPassedCorrectTypeToConvertPar // Validate that the correct typeToConvert parameter is passed in all serialization contexts: // 1. Typed root value. - // 2. Untyped root value (where the reported regression occured). + // 2. Untyped root value (where the reported regression occurred). // 3. Nested values in POCOs, collections & dictionaries. DerivedClass result = JsonSerializer.Deserialize("{}", options); diff --git a/src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/RegexCompiler.cs b/src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/RegexCompiler.cs index d2d293402a5a9d..9a18bd270cf031 100644 --- a/src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/RegexCompiler.cs +++ b/src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/RegexCompiler.cs @@ -5216,7 +5216,7 @@ void EmitIndexOf(RegexNode node, bool useLast, bool negate) } // IndexOfAny{Except}(ch1, ...) - Span setChars = stackalloc char[128]; // arbitrary cut-off that accomodates all of ASCII and doesn't take too long to compute + Span setChars = stackalloc char[128]; // arbitrary cut-off that accommodates all of ASCII and doesn't take too long to compute int setCharsCount = RegexCharClass.GetSetChars(node.Str, setChars); if (setCharsCount > 0) { diff --git a/src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/Symbolic/MintermClassifier.cs b/src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/Symbolic/MintermClassifier.cs index 569f5f8fdfba33..0a2bc019a67634 100644 --- a/src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/Symbolic/MintermClassifier.cs +++ b/src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/Symbolic/MintermClassifier.cs @@ -46,7 +46,7 @@ public MintermClassifier(BDD[] minterms) // Compute all minterm ranges. We do this here in order to determine the maximum character value // in order to size the lookup array to minimize steady-state memory consumption of the potentially // large lookup array. We prefer to use the byte[] _lookup when possible, in order to keep memory - // consumption to a minimum; doing so accomodates up to 255 minterms, which is the vast majority case. + // consumption to a minimum; doing so accommodates up to 255 minterms, which is the vast majority case. // However, when there are more than 255 minterms, we need to use int[] _intLookup. We rent an object[] // rather than a (uint,uint)[][] to avoid the extra type pressure on the ArrayPool (object[]s are common, // (uint,uint)[][]s much less so). diff --git a/src/mono/mono/metadata/class-init.c b/src/mono/mono/metadata/class-init.c index 90fcd9d028c6df..7274ce756b0250 100644 --- a/src/mono/mono/metadata/class-init.c +++ b/src/mono/mono/metadata/class-init.c @@ -388,7 +388,7 @@ mono_class_setup_fields (MonoClass *klass) if (mono_get_runtime_callbacks ()->mono_class_set_deferred_type_load_failure_callback (klass, "Inline array struct must not have explicit layout.")) break; else - ; // failure occured during AOT compilation, continue execution + ; // failure occurred during AOT compilation, continue execution } else { mono_class_set_type_load_failure (klass, "Inline array struct must not have explicit layout."); break; @@ -2359,7 +2359,7 @@ mono_class_layout_fields (MonoClass *klass, int base_instance_size, int packing_ if (mono_get_runtime_callbacks ()->mono_class_set_deferred_type_load_failure_callback (klass, "Inline array struct size out of bounds, abnormally large.")) break; else - size = initial_size; // failure occured during AOT compilation, continue execution + size = initial_size; // failure occurred during AOT compilation, continue execution } else { mono_class_set_type_load_failure (klass, "Inline array struct size out of bounds, abnormally large."); break; diff --git a/src/mono/mono/metadata/marshal.c b/src/mono/mono/metadata/marshal.c index 633a5575ac9b3c..39d522bb570c6f 100644 --- a/src/mono/mono/metadata/marshal.c +++ b/src/mono/mono/metadata/marshal.c @@ -6022,7 +6022,7 @@ mono_marshal_load_standard_layout_type_info(MonoClass* klass, MonoMarshalType* i if (mono_get_runtime_callbacks ()->mono_class_set_deferred_type_load_failure_callback (klass, "Inline array struct size out of bounds, abnormally large.")) break; else - size = initial_size; // failure occured during AOT compilation, continue execution + size = initial_size; // failure occurred during AOT compilation, continue execution } else { mono_class_set_type_load_failure (klass, "Inline array struct size out of bounds, abnormally large."); break; diff --git a/src/native/libs/System.Security.Cryptography.Native/pal_evp_pkey_rsa.c b/src/native/libs/System.Security.Cryptography.Native/pal_evp_pkey_rsa.c index 764bd2870d1912..a6040b939cd134 100644 --- a/src/native/libs/System.Security.Cryptography.Native/pal_evp_pkey_rsa.c +++ b/src/native/libs/System.Security.Cryptography.Native/pal_evp_pkey_rsa.c @@ -79,7 +79,7 @@ static bool ConfigureEncryption(EVP_PKEY_CTX* ctx, RsaPaddingMode padding, const EVP_PKEY_CTX_ctrl_str(ctx, "rsa_pkcs1_implicit_rejection", "0"); - // Undo any changes to the error queue that may have occured while configuring implicit rejection if the + // Undo any changes to the error queue that may have occurred while configuring implicit rejection if the // current version does not support implicit rejection. ERR_pop_to_mark(); } diff --git a/src/tests/baseservices/exceptions/regressions/V1/SEH/coverage/Exceptions.cs b/src/tests/baseservices/exceptions/regressions/V1/SEH/coverage/Exceptions.cs index 4d8a0f242008c8..e274b1aeec08f6 100644 --- a/src/tests/baseservices/exceptions/regressions/V1/SEH/coverage/Exceptions.cs +++ b/src/tests/baseservices/exceptions/regressions/V1/SEH/coverage/Exceptions.cs @@ -31,7 +31,7 @@ public static int TestEntryPoint() try { Console.WriteLine("Throwing ArgumentOutOfRangeException.."); - throw new ArgumentOutOfRangeException("Arguement Name", 1, "Arguement Shame"); + throw new ArgumentOutOfRangeException("Argument Name", 1, "Argument Shame"); } catch(ArgumentOutOfRangeException e) diff --git a/src/tests/profiler/dynamicoptimization/DynamicOptimization.cs b/src/tests/profiler/dynamicoptimization/DynamicOptimization.cs index 141a645aa05c49..bfad6f370d90fe 100644 --- a/src/tests/profiler/dynamicoptimization/DynamicOptimization.cs +++ b/src/tests/profiler/dynamicoptimization/DynamicOptimization.cs @@ -189,7 +189,7 @@ public static int Main(string[] args) [DllImport("Profiler")] public static extern int SwitchInlining(bool disable); - // this retrieves the number of inlining operations that occured + // this retrieves the number of inlining operations that occurred [DllImport("Profiler")] public static extern int GetInlineCount(); }