Skip to content

Commit c4d3335

Browse files
RexJaeschkeBillWagner
authored andcommitted
fix formatting
1 parent a9dfa92 commit c4d3335

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
@@ -1959,7 +1959,8 @@ The run-time processing of an array access of the form `P[A]`, where `P` is a *p
19591959
> 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
19601960
>
19611961
> ```csharp
1962-
> values2D[idx3.GetOffset(values2D.GetUpperBound(0) + 1), idx4.GetOffset(values2D.GetUpperBound(1) + 1)]
1962+
> values2D[idx3.GetOffset(values2D.GetUpperBound(0) + 1),
1963+
idx4.GetOffset(values2D.GetUpperBound(1) + 1)]
19631964
> ```
19641965
>
19651966
> *end example*
@@ -1973,7 +1974,8 @@ The run-time processing of an array access of the form `P[A]`, where `P` is a *p
19731974
> `seasons[0..2]` is transformed by the implementation to
19741975
>
19751976
> ```csharp
1976-
> System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray<string>(seasons, 0..2)
1977+
> System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray<string>(
1978+
seasons, 0..2)
19771979
> ```
19781980
>
19791981
> which returns the `string[]` slice containing `"Summer"` and `"Autumn"`. *end example*
@@ -3392,13 +3394,13 @@ Lifted ([§11.4.8](expressions.md#1148-lifted-operators)) forms of the unlifted
33923394

33933395
> *Example*: The following example uses array and string indexable sequences:
33943396
>
3395-
> ```csharp
3397+
> ```csharp
33963398
> string[] seasons = new string[] { "Summer", "Autumn", "Winter", "Spring" };
33973399
> seasons[1..3] // string[2] "Autumn", "Winter"
33983400
> seasons[^2..^1] // string[1] "Winter"
33993401
> seasons[2..] // string[2] "Winter", "Spring"
34003402
> seasons[1..1] // string[0]
3401-
>
3403+
>
34023404
> string s2 = "Hello!";
34033405
> Index? startN = 1;
34043406
> Index? endN = ^2;

0 commit comments

Comments
 (0)