Skip to content

Commit 7a77a9f

Browse files
Update Memory<T>: Link for "ref struct" is wrong (dotnet#8581)
The link to "ref struct" linked to the normal struct page, not the ref struct page.
1 parent b3b4d57 commit 7a77a9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System/Memory`1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
6161
## Remarks
6262
63-
Like <xref:System.Span%601>, `Memory<T>` represents a contiguous region of memory. Unlike <xref:System.Span%601>, however, `Memory<T>` is not a [ref struct](/dotnet/csharp/language-reference/builtin-types/struct#ref-struct). This means that `Memory<T>` can be placed on the managed heap, whereas <xref:System.Span%601> cannot. As a result, the `Memory<T>` structure does not have the same restrictions as a <xref:System.Span%601> instance. In particular:
63+
Like <xref:System.Span%601>, `Memory<T>` represents a contiguous region of memory. Unlike <xref:System.Span%601>, however, `Memory<T>` is not a [ref struct](/dotnet/csharp/language-reference/builtin-types/ref-struct). This means that `Memory<T>` can be placed on the managed heap, whereas <xref:System.Span%601> cannot. As a result, the `Memory<T>` structure does not have the same restrictions as a <xref:System.Span%601> instance. In particular:
6464
6565
- It can be used as a field in a class.
6666

0 commit comments

Comments
 (0)