Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 7341065

Browse files
committed
spelling
1 parent c2595e7 commit 7341065

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Common/src/CoreLib/System/Runtime/InteropServices/MemoryMarshal.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static bool TryGetArray<T>(ReadOnlyMemory<T> readOnlyMemory, out ArraySeg
4646
public static bool TryGetOwnedMemory<T, TOwner>(ReadOnlyMemory<T> readOnlyMemory, out TOwner ownedMemory)
4747
where TOwner : OwnedMemory<T>
4848
{
49-
TOwner owner; // Use register for null comparision rahter than byref
49+
TOwner owner; // Use register for null comparison rather than byref
5050
ownedMemory = owner = readOnlyMemory._object as TOwner;
5151
return !ReferenceEquals(owner, null);
5252
}
@@ -58,7 +58,7 @@ public static bool TryGetOwnedMemory<T, TOwner>(ReadOnlyMemory<T> readOnlyMemory
5858
public static bool TryGetOwnedMemory<T, TOwner>(ReadOnlyMemory<T> readOnlyMemory, out TOwner ownedMemory, out int index, out int length)
5959
where TOwner : OwnedMemory<T>
6060
{
61-
TOwner owner; // Use register for null comparision rahter than byref
61+
TOwner owner; // Use register for null comparison rather than byref
6262
ownedMemory = owner = readOnlyMemory._object as TOwner;
6363
if (!ReferenceEquals(owner, null))
6464
{

0 commit comments

Comments
 (0)