Skip to content

Commit b515903

Browse files
RexJaeschkeBillWagner
authored andcommitted
fix formatting
1 parent e640a90 commit b515903

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

standard/expressions.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,7 +1927,8 @@ The run-time processing of an array access of the form `P[A]`, where `P` is a *p
19271927
> as `Index`-typed subscripts are not supported in this context, what one might like to express simply as `values2D[idx3, idx4]` must instead be rewritten explicitly by the programmer as
19281928
>
19291929
> ```csharp
1930-
> values2D[idx3.GetOffset(values2D.GetUpperBound(0) + 1), idx4.GetOffset(values2D.GetUpperBound(1) + 1)]
1930+
> values2D[idx3.GetOffset(values2D.GetUpperBound(0) + 1),
1931+
idx4.GetOffset(values2D.GetUpperBound(1) + 1)]
19311932
> ```
19321933
>
19331934
> *end example*
@@ -1941,7 +1942,8 @@ The run-time processing of an array access of the form `P[A]`, where `P` is a *p
19411942
> `seasons[0..2]` is transformed by the implementation to
19421943
>
19431944
> ```csharp
1944-
> System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray<string>(seasons, 0..2)
1945+
> System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray<string>(
1946+
seasons, 0..2)
19451947
> ```
19461948
>
19471949
> which returns the `string[]` slice containing `"Summer"` and `"Autumn"`. *end example*
@@ -3316,13 +3318,13 @@ Lifted ([§11.4.8](expressions.md#1148-lifted-operators)) forms of the unlifted
33163318

33173319
> *Example*: The following example uses array and string indexable sequences:
33183320
>
3319-
> ```csharp
3321+
> ```csharp
33203322
> string[] seasons = new string[] { "Summer", "Autumn", "Winter", "Spring" };
33213323
> seasons[1..3] // string[2] "Autumn", "Winter"
33223324
> seasons[^2..^1] // string[1] "Winter"
33233325
> seasons[2..] // string[2] "Winter", "Spring"
33243326
> seasons[1..1] // string[0]
3325-
>
3327+
>
33263328
> string s2 = "Hello!";
33273329
> Index? startN = 1;
33283330
> Index? endN = ^2;

0 commit comments

Comments
 (0)