Skip to content

Commit e5e4ce1

Browse files
committed
respond to feedback.
1 parent b7b0688 commit e5e4ce1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/csharp/whats-new/csharp-7-3.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The following enhancements were made to existing features:
2525

2626
The new compiler options are:
2727

28-
- `-publicsign` to enable OSS signing of assemblies.
28+
- `-publicsign` to enable Open Source Software (OSS) signing of assemblies.
2929
- `-pathmap` to provide a mapping for source directories.
3030

3131
The remainder of this article provides details and links to learn more about each of the improvements.
@@ -52,14 +52,14 @@ class C
5252
{
5353
static S s = new S();
5454

55-
public void M()
55+
unsafe public void M()
5656
{
5757
int p = s.myFixedField[5];
5858
}
5959
}
6060
```
6161

62-
The variable `p` doesn't need to be pinned. Note that you still need an `unsafe` context. In earlier versions of C#, you need to declare a second fixed pointer:
62+
The variable `p` accesses one element in `myFixedField`. You don't need to declare a separate `int*` variable. Note that you still need an `unsafe` context. In earlier versions of C#, you need to declare a second fixed pointer:
6363

6464
```csharp
6565
class C
@@ -83,7 +83,7 @@ Fore more information, see the article on the [`fixed` statement](../language-re
8383
Now, `ref` locals may be reassigned to refer to different instances after being initialized. The following code now compiles:
8484

8585
```csharp
86-
ref VeryLargeStruct reflocal = ref veryLargeStruct; // initialization
86+
ref VeryLargeStruct refLocal = ref veryLargeStruct; // initialization
8787
refLocal = ref anotherVeryLargeStruct; // reassigned, refLocal refers to different storage.
8888
```
8989

0 commit comments

Comments
 (0)