Skip to content

Commit 3f10dd0

Browse files
committed
Correct indices in example
1 parent 65db990 commit 3f10dd0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/codeql/codeql-language-guides/customizing-library-models-for-csharp.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,12 @@ The remaining values are used to define the ``access path``, the ``kind``, and t
281281

282282
For the first row:
283283

284-
- The seventh value is ``Argument[this].Element``, which is the access path to the elements of the qualifier (the elements of the enumerable ``stream`` in the example).
285-
- The eight value is ``Argument[0].Parameter[0]``, which is the access path to the first parameter of the ``System.Func<TSource,TResult>`` argument of ``Select`` (the lambda parameter ``item`` in the example).
284+
- The seventh value is ``Argument[0].Element``, which is the access path to the elements of the qualifier (the elements of the enumerable ``stream`` in the example).
285+
- The eight value is ``Argument[1].Parameter[0]``, which is the access path to the first parameter of the ``System.Func<TSource,TResult>`` argument of ``Select`` (the lambda parameter ``item`` in the example).
286286

287287
For the second row:
288288

289-
- The seventh value is ``Argument[0].ReturnValue``, which is the access path to the return value of the ``System.Func<TSource,TResult>`` argument of ``Select`` (the return value of the lambda in the example).
289+
- The seventh value is ``Argument[1].ReturnValue``, which is the access path to the return value of the ``System.Func<TSource,TResult>`` argument of ``Select`` (the return value of the lambda in the example).
290290
- The eighth value is ``ReturnValue.Element``, which is the access path to the elements of the return value of ``Select`` (the elements of the enumerable ``lines`` in the example).
291291

292292
For the remaining values for both rows:

0 commit comments

Comments
 (0)