Skip to content

Commit d4a8971

Browse files
authored
Merge pull request #237 from danielbanda/Typos
Typos
2 parents d299dfd + f2dce06 commit d4a8971

File tree

24 files changed

+33
-33
lines changed

24 files changed

+33
-33
lines changed

CommunityToolkit.Diagnostics/Extensions/TypeExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static string FormatDisplayString(Type type, int genericTypeOffset, ReadOnlySpan
6868
}
6969

7070
// By checking generic types here we are only interested in specific cases,
71-
// ie. nullable value types or value typles. We have a separate path for custom
71+
// ie. nullable value types or value tuples. We have a separate path for custom
7272
// generic types, as we can't rely on this API in that case, as it doesn't show
7373
// a difference between nested types that are themselves generic, or nested simple
7474
// types from a generic declaring type. To deal with that, we need to manually track

CommunityToolkit.Diagnostics/ThrowHelper.Generic.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public static T ThrowCOMException<T>(string? message, Exception? innerException)
286286
/// </summary>
287287
/// <typeparam name="T">The type of expected result.</typeparam>
288288
/// <param name="message">The argument name.</param>
289-
/// <param name="error">The HRESULT of the errror to include.</param>
289+
/// <param name="error">The HRESULT of the error to include.</param>
290290
/// <exception cref="COMException">Thrown with the specified parameters.</exception>
291291
/// <returns>This method always throws, so it actually never returns a value.</returns>
292292
[DoesNotReturn]
@@ -339,7 +339,7 @@ public static T ThrowExternalException<T>(string? message, Exception? innerExcep
339339
/// </summary>
340340
/// <typeparam name="T">The type of expected result.</typeparam>
341341
/// <param name="message">The argument name.</param>
342-
/// <param name="error">The HRESULT of the errror to include.</param>
342+
/// <param name="error">The HRESULT of the error to include.</param>
343343
/// <exception cref="ExternalException">Thrown with the specified parameters.</exception>
344344
/// <returns>This method always throws, so it actually never returns a value.</returns>
345345
[DoesNotReturn]

CommunityToolkit.Diagnostics/ThrowHelper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public static void ThrowArgumentOutOfRangeException(string? name, object? value,
213213
/// <summary>
214214
/// Throws a new <see cref="COMException"/>.
215215
/// </summary>
216-
/// <exception cref="COMException">Thrown with no paarameters.</exception>
216+
/// <exception cref="COMException">Thrown with no parameters.</exception>
217217
[DoesNotReturn]
218218
public static void ThrowCOMException()
219219
{
@@ -247,7 +247,7 @@ public static void ThrowCOMException(string? message, Exception? innerException)
247247
/// Throws a new <see cref="COMException"/>.
248248
/// </summary>
249249
/// <param name="message">The argument name.</param>
250-
/// <param name="error">The HRESULT of the errror to include.</param>
250+
/// <param name="error">The HRESULT of the error to include.</param>
251251
/// <exception cref="COMException">Thrown with the specified parameters.</exception>
252252
[DoesNotReturn]
253253
public static void ThrowCOMException(string? message, int error)
@@ -292,7 +292,7 @@ public static void ThrowExternalException(string? message, Exception? innerExcep
292292
/// Throws a new <see cref="ExternalException"/>.
293293
/// </summary>
294294
/// <param name="message">The argument name.</param>
295-
/// <param name="error">The HRESULT of the errror to include.</param>
295+
/// <param name="error">The HRESULT of the error to include.</param>
296296
/// <exception cref="ExternalException">Thrown with the specified parameters.</exception>
297297
[DoesNotReturn]
298298
public static void ThrowExternalException(string? message, int error)

CommunityToolkit.HighPerformance/Memory/Memory2D{T}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ public Memory2D<T> Slice(int row, int column, int height, int width)
727727
/// is disposed, enabling taking and using the memory's address.
728728
/// </summary>
729729
/// <exception cref="ArgumentException">
730-
/// An instance with nonprimitive (non-blittable) members cannot be pinned.
730+
/// An instance with non-primitive (non-blittable) members cannot be pinned.
731731
/// </exception>
732732
/// <returns>A <see cref="MemoryHandle"/> instance wrapping the pinned handle.</returns>
733733
public unsafe MemoryHandle Pin()

CommunityToolkit.HighPerformance/Memory/ReadOnlyMemory2D{T}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ public ReadOnlyMemory2D<T> Slice(int row, int column, int height, int width)
740740
/// is disposed, enabling taking and using the memory's address.
741741
/// </summary>
742742
/// <exception cref="ArgumentException">
743-
/// An instance with nonprimitive (non-blittable) members cannot be pinned.
743+
/// An instance with non-primitive (non-blittable) members cannot be pinned.
744744
/// </exception>
745745
/// <returns>A <see cref="MemoryHandle"/> instance wrapping the pinned handle.</returns>
746746
public unsafe MemoryHandle Pin()

CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/Models/TypedConstantInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace CommunityToolkit.Mvvm.SourceGenerators.ComponentModel.Models;
1515
/// <summary>
1616
/// A model representing a typed constant item.
1717
/// </summary>
18-
/// <remarks>This model is fully serializeable and comparable.</remarks>
18+
/// <remarks>This model is fully serializable and comparable.</remarks>
1919
internal abstract partial record TypedConstantInfo
2020
{
2121
/// <summary>

CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/ObservablePropertyGenerator.Execute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ internal static class Execute
6666
diagnostics = builder.ToImmutable();
6767

6868
// If the generated property would collide, skip generating it entirely. This makes sure that
69-
// users only get the helpful diagnostic about the collsiion, and not the normal compiler error
69+
// users only get the helpful diagnostic about the collision, and not the normal compiler error
7070
// about a definition for "Property" already existing on the target type, which might be confusing.
7171
return null;
7272
}

CommunityToolkit.Mvvm.SourceGenerators/Extensions/ITypeSymbolExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static bool InheritsFromFullyQualifiedName(this ITypeSymbol typeSymbol, s
5656
}
5757

5858
/// <summary>
59-
/// Checks whether or not a given <see cref="ITypeSymbol"/> implements an interface with a specied name.
59+
/// Checks whether or not a given <see cref="ITypeSymbol"/> implements an interface with a specified name.
6060
/// </summary>
6161
/// <param name="typeSymbol">The target <see cref="ITypeSymbol"/> instance to check.</param>
6262
/// <param name="name">The full name of the type to check for interface implementation.</param>

CommunityToolkit.Mvvm.SourceGenerators/Extensions/IncrementalValuesProviderExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ internal static class IncrementalValuesProviderExtensions
5858
}
5959

6060
/// <summary>
61-
/// Creates a new <see cref="IncrementalValuesProvider{TValues}"/> instance with a gven pair of comparers.
61+
/// Creates a new <see cref="IncrementalValuesProvider{TValues}"/> instance with a given pair of comparers.
6262
/// </summary>
6363
/// <typeparam name="TLeft">The type of left items in each tuple.</typeparam>
6464
/// <typeparam name="TRight">The type of right items in each tuple.</typeparam>
@@ -75,7 +75,7 @@ internal static class IncrementalValuesProviderExtensions
7575
}
7676

7777
/// <summary>
78-
/// Creates a new <see cref="IncrementalValuesProvider{TValues}"/> instance with a gven pair of comparers.
78+
/// Creates a new <see cref="IncrementalValuesProvider{TValues}"/> instance with a given pair of comparers.
7979
/// </summary>
8080
/// <typeparam name="T1">The type of first items in each tuple.</typeparam>
8181
/// <typeparam name="T2">The type of second items in each tuple.</typeparam>

CommunityToolkit.Mvvm.SourceGenerators/Helpers/HashCode.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,15 +278,15 @@ public static int Combine<T1, T2, T3, T4, T5, T6, T7>(T1 value1, T2 value2, T3 v
278278
/// <typeparam name="T5">The type of the fifth value to combine into the hash code.</typeparam>
279279
/// <typeparam name="T6">The type of the sixth value to combine into the hash code.</typeparam>
280280
/// <typeparam name="T7">The type of the seventh value to combine into the hash code.</typeparam>
281-
/// <typeparam name="T8">The type of the eigth value to combine into the hash code.</typeparam>
281+
/// <typeparam name="T8">The type of the eighth value to combine into the hash code.</typeparam>
282282
/// <param name="value1">The first value to combine into the hash code.</param>
283283
/// <param name="value2">The second value to combine into the hash code.</param>
284284
/// <param name="value3">The third value to combine into the hash code.</param>
285285
/// <param name="value4">The fourth value to combine into the hash code.</param>
286286
/// <param name="value5">The fifth value to combine into the hash code.</param>
287287
/// <param name="value6">The sixth value to combine into the hash code.</param>
288288
/// <param name="value7">The seventh value to combine into the hash code.</param>
289-
/// <param name="value8">The eigth value to combine into the hash code.</param>
289+
/// <param name="value8">The eighth value to combine into the hash code.</param>
290290
/// <returns>The hash code that represents the values.</returns>
291291
public static int Combine<T1, T2, T3, T4, T5, T6, T7, T8>(T1 value1, T2 value2, T3 value3, T4 value4, T5 value5, T6 value6, T7 value7, T8 value8)
292292
{

0 commit comments

Comments
 (0)