Skip to content

Commit e1ddd52

Browse files
author
msftbot[bot]
authored
Fix few typos in comments (#3923)
## Fixes Fix few typos in the code base. Note that only comments are impacted by this change. ## PR Type What kind of change does this PR introduce? - Documentation content changes ## What is the current behavior? N/A ## What is the new behavior? N/A ## PR Checklist Please check if your PR fulfills the following requirements: - [x] Tested code with current [supported SDKs](../readme.md#supported) - [ ] Pull Request has been submitted to the documentation repository [instructions](..\contributing.md#docs). Link: <!-- docs PR link --> - [ ] Sample in sample app has been added / updated (for bug fixes / features) - [ ] Icon has been created (if new sample) following the [Thumbnail Style Guide and templates](https://github.com/windows-toolkit/WindowsCommunityToolkit-design-assets) - [ ] New major technical changes in the toolkit have or will be added to the [Wiki](https://github.com/windows-toolkit/WindowsCommunityToolkit/wiki) e.g. build changes, source generators, testing infrastructure, sample creation changes, etc... - [ ] Tests for the changes have been added (for bug fixes / features) (if applicable) - [ ] Header has been added to all new source files (run *build/UpdateHeaders.bat*) - [x] Contains **NO** breaking changes ## Other information
2 parents 9b23e4f + 407b5d8 commit e1ddd52

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

Microsoft.Toolkit.HighPerformance/Extensions/ArrayExtensions.3D.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static ref T DangerousGetReference<T>(this T[,,] array)
5555
/// <remarks>
5656
/// This method doesn't do any bounds checks, therefore it is responsibility of the caller to ensure the <paramref name="i"/>
5757
/// and <paramref name="j"/> parameters are valid. Furthermore, this extension will ignore the lower bounds for the input
58-
/// array, and will just assume that the input index is 0-based. It is responsability of the caller to adjust the input
58+
/// array, and will just assume that the input index is 0-based. It is responsibility of the caller to adjust the input
5959
/// indices to account for the actual lower bounds, if the input array has either axis not starting at 0.
6060
/// </remarks>
6161
[Pure]

Microsoft.Toolkit.HighPerformance/Memory/Memory2D{T}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ private Memory2D(object instance, IntPtr offset, int height, int width, int pitc
525525
/// <param name="width">The width of the 2D memory area to map.</param>
526526
/// <param name="pitch">The pitch of the 2D memory area to map.</param>
527527
/// <returns>A <see cref="Memory2D{T}"/> instance with the specified parameters.</returns>
528-
/// <remarks>The <paramref name="value"/> parameter is not validated, and it's responsability of the caller to ensure it's valid.</remarks>
528+
/// <remarks>The <paramref name="value"/> parameter is not validated, and it's responsibility of the caller to ensure it's valid.</remarks>
529529
/// <exception cref="ArgumentOutOfRangeException">
530530
/// Thrown when one of the input parameters is out of range.
531531
/// </exception>

Microsoft.Toolkit.HighPerformance/Memory/ReadOnlyMemory2D{T}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ private ReadOnlyMemory2D(object instance, IntPtr offset, int height, int width,
539539
/// <param name="width">The width of the 2D memory area to map.</param>
540540
/// <param name="pitch">The pitch of the 2D memory area to map.</param>
541541
/// <returns>A <see cref="ReadOnlyMemory2D{T}"/> instance with the specified parameters.</returns>
542-
/// <remarks>The <paramref name="value"/> parameter is not validated, and it's responsability of the caller to ensure it's valid.</remarks>
542+
/// <remarks>The <paramref name="value"/> parameter is not validated, and it's responsibility of the caller to ensure it's valid.</remarks>
543543
/// <exception cref="ArgumentOutOfRangeException">
544544
/// Thrown when one of the input parameters is out of range.
545545
/// </exception>

Microsoft.Toolkit.Mvvm/Messaging/WeakReferenceMessenger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public void UnregisterAll(object recipient)
111111

112112
// Traverse all the existing conditional tables and remove all the ones
113113
// with the target recipient as key. We don't perform a cleanup here,
114-
// as that is responsability of a separate method defined below.
114+
// as that is responsibility of a separate method defined below.
115115
while (enumerator.MoveNext())
116116
{
117117
enumerator.Value.Remove(recipient);

Microsoft.Toolkit.Uwp.UI.Controls.Primitives/SwitchPresenter/SwitchPresenter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ private bool CompareValues(object compare, object value)
199199
}
200200
else if (compare.GetType() == TargetType)
201201
{
202-
// If we have a TargetType and the first value is ther right type
202+
// If we have a TargetType and the first value is the right type
203203
// Then our 2nd value isn't, so convert to string and coerce.
204204
var valueBase2 = ConvertValue(TargetType, value);
205205

Microsoft.Toolkit.Uwp.UI.Media/Geometry/Utils.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static class Utils
3131
/// <param name="value1"> The first double to compare. </param>
3232
/// <param name="value2"> The second double to compare. </param>
3333
/// <returns>
34-
/// bool - the result of the AreClose comparision.
34+
/// bool - the result of the AreClose comparison.
3535
/// </returns>
3636
public static bool IsCloseTo(this double value1, double value2)
3737
{
@@ -55,7 +55,7 @@ public static bool IsCloseTo(this double value1, double value2)
5555
/// <param name="value1"> The first double to compare. </param>
5656
/// <param name="value2"> The second double to compare. </param>
5757
/// <returns>
58-
/// bool - the result of the LessThan comparision.
58+
/// bool - the result of the LessThan comparison.
5959
/// </returns>
6060
public static bool IsLessThan(this double value1, double value2)
6161
{
@@ -68,7 +68,7 @@ public static bool IsLessThan(this double value1, double value2)
6868
/// <param name="value1"> The first double to compare. </param>
6969
/// <param name="value2"> The second double to compare. </param>
7070
/// <returns>
71-
/// bool - the result of the GreaterThan comparision.
71+
/// bool - the result of the GreaterThan comparison.
7272
/// </returns>
7373
public static bool IsGreaterThan(this double value1, double value2)
7474
{
@@ -81,7 +81,7 @@ public static bool IsGreaterThan(this double value1, double value2)
8181
/// </summary>
8282
/// <param name="value"> The double to compare to 1. </param>
8383
/// <returns>
84-
/// bool - the result of the AreClose comparision.
84+
/// bool - the result of the AreClose comparison.
8585
/// </returns>
8686
public static bool IsOne(this double value)
8787
{
@@ -94,7 +94,7 @@ public static bool IsOne(this double value)
9494
/// </summary>
9595
/// <param name="value"> The double to compare to 0. </param>
9696
/// <returns>
97-
/// bool - the result of the AreClose comparision.
97+
/// bool - the result of the AreClose comparison.
9898
/// </returns>
9999
public static bool IsZero(this double value)
100100
{
@@ -107,7 +107,7 @@ public static bool IsZero(this double value)
107107
/// <param name="value1"> The first float to compare. </param>
108108
/// <param name="value2"> The second float to compare. </param>
109109
/// <returns>
110-
/// bool - the result of the AreClose comparision.
110+
/// bool - the result of the AreClose comparison.
111111
/// </returns>
112112
public static bool IsCloseTo(this float value1, float value2)
113113
{
@@ -131,7 +131,7 @@ public static bool IsCloseTo(this float value1, float value2)
131131
/// <param name="value1"> The first float to compare. </param>
132132
/// <param name="value2"> The second float to compare. </param>
133133
/// <returns>
134-
/// bool - the result of the LessThan comparision.
134+
/// bool - the result of the LessThan comparison.
135135
/// </returns>
136136
public static bool IsLessThan(this float value1, float value2)
137137
{
@@ -144,7 +144,7 @@ public static bool IsLessThan(this float value1, float value2)
144144
/// <param name="value1"> The first float to compare. </param>
145145
/// <param name="value2"> The second float to compare. </param>
146146
/// <returns>
147-
/// bool - the result of the GreaterThan comparision.
147+
/// bool - the result of the GreaterThan comparison.
148148
/// </returns>
149149
public static bool IsGreaterThan(this float value1, float value2)
150150
{
@@ -157,7 +157,7 @@ public static bool IsGreaterThan(this float value1, float value2)
157157
/// </summary>
158158
/// <param name="value"> The float to compare to 1. </param>
159159
/// <returns>
160-
/// bool - the result of the AreClose comparision.
160+
/// bool - the result of the AreClose comparison.
161161
/// </returns>
162162
public static bool IsOne(this float value)
163163
{
@@ -170,7 +170,7 @@ public static bool IsOne(this float value)
170170
/// </summary>
171171
/// <param name="value"> The float to compare to 0. </param>
172172
/// <returns>
173-
/// bool - the result of the AreClose comparision.
173+
/// bool - the result of the AreClose comparison.
174174
/// </returns>
175175
public static bool IsZero(this float value)
176176
{

Microsoft.Toolkit.Uwp/Extensions/DispatcherQueueTimerExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace Microsoft.Toolkit.Uwp.UI
1010
{
1111
/// <summary>
12-
/// Set of extention methods for using <see cref="DispatcherQueueTimer"/>.
12+
/// Set of extension methods for using <see cref="DispatcherQueueTimer"/>.
1313
/// </summary>
1414
public static class DispatcherQueueTimerExtensions
1515
{

UnitTests/UnitTests.UWP/PrivateObject.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ private static void ValidateAccessString(string access)
694694
}
695695

696696
/// <summary>
697-
/// Invokes the memeber
697+
/// Invokes the member
698698
/// </summary>
699699
/// <param name="name">Name of the member</param>
700700
/// <param name="bindingFlags">Additional attributes</param>
@@ -887,7 +887,7 @@ internal class RuntimeTypeHelper
887887
/// </summary>
888888
/// <param name="m1">Method1</param>
889889
/// <param name="m2">Method2</param>
890-
/// <returns>True if they are similiar.</returns>
890+
/// <returns>True if they are similar.</returns>
891891
internal static bool CompareMethodSigAndName(MethodBase m1, MethodBase m2)
892892
{
893893
ParameterInfo[] params1 = m1.GetParameters();

0 commit comments

Comments
 (0)