Skip to content

Commit afc1e85

Browse files
RexJaeschkeBillWagner
authored andcommitted
Apply suggestions from code review
1 parent 9c5af32 commit afc1e85

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

standard/conversions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ In most cases, an identity conversion has no effect at runtime. However, since f
117117
118118
There is an identity conversion between `nint` and `System.IntPtr`, and between `nuint` and `System.UIntPtr`.
119119
120-
For the compound types array, nullable type, constructed type, and tuple, there is an identity conversion between native integers ([§8.3.6]( types.md#836-integral-types)) and their underlying types.
120+
For the compound types array, nullable type, constructed type, and tuple, there is an identity conversion between native integers ([§8.3.6](types.md#836-integral-types)) and their underlying types.
121121
122122
### 10.2.3 Implicit numeric conversions
123123

standard/types.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -321,13 +321,7 @@ Although `nint` and `nuint` shall be represented by the types `System.IntPtr` an
321321
322322
Consider the following:
323323
324-
<!-- Example: {template:"standalone-console-without-using", name:"SimpleTypes2", expectedErrors:["CS0266"], ignoredWarnings:["CS0219"]} -->
325-
```csharp
326-
nint a1 = 1; // OK
327-
System.IntPtr a2 = 1; // Error: no implicit conversion
328-
```
329-
330-
While the implementation provides operations and conversions for `nint` and `nuint` that are appropriate for integer types, those operations and conversions are not available on the `System` type counterparts. Similarly,
324+
While the implementation provides operations and conversions for `nint` and `nuint` that are appropriate for integer types, those operations and conversions are not available on the `System` type counterparts. For example,
331325
332326
<!-- Example: {template:"code-in-main-without-using", name:"SimpleTypes3", expectedException:"RuntimeBinderException"} -->
333327
```csharp

0 commit comments

Comments
 (0)