Skip to content

Commit ca91797

Browse files
pkulikovBillWagner
authored andcommitted
Fix code fencing (#16711)
1 parent c79b3ad commit ca91797

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/csharp/language-reference/builtin-types/reference-types.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ C# has a number of built-in reference types. They have keywords or operators tha
2727

2828
## The object type
2929

30-
The `object` type is an alias for <xref:System.Object?displayProperty=nameWithType> in .NET. In the unified type system of C#, all types, predefined and user-defined, reference types and value types, inherit directly or indirectly from <xref:System.Object?displayProperty=nameWithType>. You can assign values of any type to variables of type `object`. Any `object` variable can be assigned to its default value using the literal `null`. When a variable of a value type is converted to object, it is said to be *boxed*. When a variable of type object is converted to a value type, it is said to be *unboxed*. For more information, see [Boxing and Unboxing](../../programming-guide/types/boxing-and-unboxing.md).
30+
The `object` type is an alias for <xref:System.Object?displayProperty=nameWithType> in .NET. In the unified type system of C#, all types, predefined and user-defined, reference types and value types, inherit directly or indirectly from <xref:System.Object?displayProperty=nameWithType>. You can assign values of any type to variables of type `object`. Any `object` variable can be assigned to its default value using the literal `null`. When a variable of a value type is converted to object, it is said to be *boxed*. When a variable of type `object` is converted to a value type, it is said to be *unboxed*. For more information, see [Boxing and Unboxing](../../programming-guide/types/boxing-and-unboxing.md).
3131

3232
## The string type
3333

@@ -61,14 +61,14 @@ string b = "h";
6161
b += "ello";
6262
```
6363

64-
The `[]` [operator](../operators/member-access-operators.md#indexer-operator-) can be used for readonly access to individual characters of a `string`. Valid values start at `0` and must be less than the length of the `string`:
64+
The `[]` [operator](../operators/member-access-operators.md#indexer-operator-) can be used for readonly access to individual characters of a string. Valid index values start at `0` and must be less than the length of the string:
6565

6666
```csharp
6767
string str = "test";
6868
char x = str[2]; // x = 's';
6969
```
7070

71-
In similar fashion, the `[]` operator can also be used for iterating over each character in a `string`:
71+
In similar fashion, the `[]` operator can also be used for iterating over each character in a string:
7272

7373
```csharp-interactive
7474
string str = "test";

0 commit comments

Comments
 (0)