Skip to content

Commit 363ca5d

Browse files
authored
Fix typo in allows ref struct (#43106)
1 parent ae045b9 commit 363ca5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/csharp/whats-new/csharp-13.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ In the same fashion, C# 13 allows `unsafe` contexts in iterator methods. However
110110

111111
Before C# 13, `ref struct` types couldn't be declared as the type argument for a generic type or method. Now, generic type declarations can add an anti-constraint, `allows ref struct`. This anti-constraint declares that the type argument supplied for that type parameter can be a `ref struct` type. The compiler enforces ref safety rules on all instances of that type parameter.
112112

113-
For example, you may declare an interface like the following code:
113+
For example, you may declare a generic type like the following code:
114114

115115
```csharp
116116
public class C<T> where T : allows ref struct

0 commit comments

Comments
 (0)