Skip to content

Commit 9ccf64a

Browse files
committed
fix two build warnings
1 parent edbc583 commit 9ccf64a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/csharp/language-reference/keywords/extension.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Static extensions can be called as though they're static members of the receiver
2828

2929
:::code language="csharp" source="./snippets/extensions.cs" id="UseStaticExtensions":::
3030

31-
> [!IMPORTANT]
31+
> [!IMPORTANT]
3232
> An extension doesn't introduce a *scope* for member declarations. All members declared in a single class, even if in multiple extensions, must have unique signatures. The generated signature includes the receiver type in its name for static members and the receiver parameter for extension instance members.
3333
3434
The following example shows an extension method using the `this` modifier:

docs/csharp/language-reference/keywords/snippets/ExtensionMethods.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static void BasicExample()
2626
}
2727
}
2828

29-
// <GenericExtensionMethod>
29+
// <GenericExtensionMethods>
3030
public static class GenericExtensions
3131
{
3232
public static IEnumerable<T> Spread<T>(this IEnumerable<T> source, int start, int count)
@@ -44,7 +44,7 @@ public static IEnumerable<T1> Append<T1, T2>(this IEnumerable<T1> source, IEnume
4444
}
4545
}
4646

47-
public static IEnumerable<T1> Prepend<T1, TArg>(this IEnumerable<T1> source, IEnumerable<T2> second, Func<T2, T1> Converter)
47+
public static IEnumerable<T1> Prepend<T1, T2>(this IEnumerable<T1> source, IEnumerable<T2> second, Func<T2, T1> Converter)
4848
{
4949
foreach (T2 item in second)
5050
{
@@ -56,6 +56,6 @@ public static IEnumerable<T1> Prepend<T1, TArg>(this IEnumerable<T1> source, IEn
5656
}
5757
}
5858
}
59-
// </GenericExtensionMethod>
59+
// </GenericExtensionMethods>
6060

6161

0 commit comments

Comments
 (0)