diff --git a/src/CommunityToolkit.HighPerformance/Buffers/StringPool.cs b/src/CommunityToolkit.HighPerformance/Buffers/StringPool.cs index 3cb8f12e1..b1ef81e37 100644 --- a/src/CommunityToolkit.HighPerformance/Buffers/StringPool.cs +++ b/src/CommunityToolkit.HighPerformance/Buffers/StringPool.cs @@ -85,7 +85,7 @@ static void FindFactors(int size, int factor, out uint x, out uint y) // that we consider acceptable, and pick the best results produced. // The ratio between maps influences the number of objects being allocated, // as well as the multithreading performance when locking on maps. - // We still want to contraint this number to avoid situations where we + // We still want to constraint this number to avoid situations where we // have a way too high number of maps compared to total size. FindFactors(minimumSize, 2, out uint x2, out uint y2); FindFactors(minimumSize, 3, out uint x3, out uint y3); @@ -113,7 +113,7 @@ static void FindFactors(int size, int factor, out uint x, out uint y) // We preallocate the maps in advance, since each bucket only contains the // array field, which is not preinitialized, so the allocations are minimal. - // This lets us lock on each individual maps when retrieving a string instance. + // This lets us lock on each individual map when retrieving a string instance. foreach (ref FixedSizePriorityMap map in span) { map = new FixedSizePriorityMap((int)y2); diff --git a/src/CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/ObservableValidatorValidateAllPropertiesGenerator.Execute.cs b/src/CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/ObservableValidatorValidateAllPropertiesGenerator.Execute.cs index 684430db7..0b82211ba 100644 --- a/src/CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/ObservableValidatorValidateAllPropertiesGenerator.Execute.cs +++ b/src/CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/ObservableValidatorValidateAllPropertiesGenerator.Execute.cs @@ -181,7 +181,7 @@ public static CompilationUnitSyntax GetSyntax(ValidationInfo validationInfo) // full runtime type safety (as a safe cast is used to validate the input argument), and with less reflection needed. // Note that we're deliberately creating a new delegate instance here and not using code that could see the C# compiler // create a static class to cache a reusable delegate, because each generated method will only be called at most once, - // as the returned delegate will be cached by the MVVM Toolkit itself. So this ensures the the produced code is minimal, + // as the returned delegate will be cached by the MVVM Toolkit itself. So this ensures the produced code is minimal, // and that there will be no unnecessary static fields and objects being created and possibly never collected. // This code will produce a syntax tree as follows: // diff --git a/src/CommunityToolkit.Mvvm/ComponentModel/Attributes/INotifyPropertyChangedAttribute.cs b/src/CommunityToolkit.Mvvm/ComponentModel/Attributes/INotifyPropertyChangedAttribute.cs index 360643eee..08b63b4c6 100644 --- a/src/CommunityToolkit.Mvvm/ComponentModel/Attributes/INotifyPropertyChangedAttribute.cs +++ b/src/CommunityToolkit.Mvvm/ComponentModel/Attributes/INotifyPropertyChangedAttribute.cs @@ -28,7 +28,7 @@ public sealed class INotifyPropertyChangedAttribute : Attribute { /// /// Gets or sets a value indicating whether or not to also generate all the additional helper methods that are found - /// in as well (eg. . + /// in as well (eg. ). /// If set to , only the event and /// the two overloads will be generated. /// The default value is . diff --git a/src/CommunityToolkit.Mvvm/Messaging/IMessenger.cs b/src/CommunityToolkit.Mvvm/Messaging/IMessenger.cs index a007d40eb..72720a899 100644 --- a/src/CommunityToolkit.Mvvm/Messaging/IMessenger.cs +++ b/src/CommunityToolkit.Mvvm/Messaging/IMessenger.cs @@ -15,7 +15,7 @@ namespace CommunityToolkit.Mvvm.Messaging; /// /// public sealed class LoginCompletedMessage { } /// -/// Then, register your a recipient for this message: +/// Then, register a recipient for this message: /// /// Messenger.Default.Register<MyRecipientType, LoginCompletedMessage>(this, (r, m) => /// { diff --git a/src/CommunityToolkit.Mvvm/Messaging/IMessengerExtensions.cs b/src/CommunityToolkit.Mvvm/Messaging/IMessengerExtensions.cs index 6febfb2e1..532639c8f 100644 --- a/src/CommunityToolkit.Mvvm/Messaging/IMessengerExtensions.cs +++ b/src/CommunityToolkit.Mvvm/Messaging/IMessengerExtensions.cs @@ -435,7 +435,7 @@ public static TMessage Send(this IMessenger messenger, TMessage messag /// The type of token to identify what channel to use to send the message. /// The instance to use to send the message. /// The token indicating what channel to use. - /// The message that has been sen. + /// The message that has been sent. /// /// This method will automatically create a new instance /// just like , and then send it to the right recipients. diff --git a/src/CommunityToolkit.Mvvm/Messaging/Internals/System/Collections.Generic/Dictionary2.cs b/src/CommunityToolkit.Mvvm/Messaging/Internals/System/Collections.Generic/Dictionary2.cs index c3ac541a7..4e8bbf075 100644 --- a/src/CommunityToolkit.Mvvm/Messaging/Internals/System/Collections.Generic/Dictionary2.cs +++ b/src/CommunityToolkit.Mvvm/Messaging/Internals/System/Collections.Generic/Dictionary2.cs @@ -298,7 +298,7 @@ public bool MoveNext() while ((uint)this.index < (uint)this.count) { // We need to preemptively increment the current index so that we still correctly keep track - // of the current position in the dictionary even if the users doesn't access any of the + // of the current position in the dictionary even if the users don't access any of the // available properties in the enumerator. As this is a possibility, we can't rely on one of // them to increment the index before MoveNext is invoked again. We ditch the standard enumerator // API surface here to expose the Key/Value properties directly and minimize the memory copies.