1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-21 01:18:02 +02:00

Merge pull request #1656 from disarray2077/patch-16

Add assert to Span<T>.RemoveFromEnd
This commit is contained in:
Brian Fiete 2022-07-24 14:04:48 -04:00 committed by GitHub
commit 8e755a86bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
} }