mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-21 09:27:59 +02:00
Merge pull request #1656 from disarray2077/patch-16
Add assert to Span<T>.RemoveFromEnd
This commit is contained in:
commit
8e755a86bc
1 changed files with 1 additions and 0 deletions
|
@ -276,6 +276,7 @@ namespace System
|
||||||
|
|
||||||
public void RemoveFromEnd(int length) mut
|
public void RemoveFromEnd(int length) mut
|
||||||
{
|
{
|
||||||
|
Debug.Assert((uint)length <= (uint)mLength);
|
||||||
mLength -= length;
|
mLength -= length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue