Skip to content

Commit 85fe8fe

Browse files
Improve API documentation for Enumerable.Index (#98148)
* Improve API documentation for Enumerable.Index * Update src/libraries/System.Linq/src/System/Linq/Index.cs Co-authored-by: Stephen Toub <stoub@microsoft.com> --------- Co-authored-by: Stephen Toub <stoub@microsoft.com>
1 parent de1d1a0 commit 85fe8fe

File tree

1 file changed

+2
-2
lines changed
  • src/libraries/System.Linq/src/System/Linq

1 file changed

+2
-2
lines changed

src/libraries/System.Linq/src/System/Linq/Index.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ namespace System.Linq
77
{
88
public static partial class Enumerable
99
{
10-
/// <summary>Return index and the associated item.</summary>
10+
/// <summary>Returns an enumerable that incorporates the element's index into a tuple.</summary>
1111
/// <typeparam name="TSource">The type of the elements of <paramref name="source" />.</typeparam>
12-
/// <param name="source">An <see cref="IEnumerable{T}" /> to return an element from.</param>
12+
/// <param name="source">The source enumerable providing the elements.</param>
1313
/// <exception cref="ArgumentNullException"><paramref name="source" /> is <see langword="null" />.</exception>
1414
public static IEnumerable<(int Index, TSource Item)> Index<TSource>(this IEnumerable<TSource> source)
1515
{

0 commit comments

Comments
 (0)