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

Add assert to Span<T>.RemoveFromEnd

This commit is contained in:
disarray2077 2022-07-22 17:37:54 -03:00 committed by GitHub
parent 119e9189e5
commit cfee95caf9
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
{
Debug.Assert((uint)length <= (uint)mLength);
mLength -= length;
}