Skip to content

Commit

Permalink
Fix assert in ValueListBuilder.Insert (#97957)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub authored Feb 5, 2024
1 parent c3940f6 commit f8629e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private void AppendMultiChar(scoped ReadOnlySpan<T> source)

public void Insert(int index, scoped ReadOnlySpan<T> source)
{
Debug.Assert(index >= 0 && index <= _pos);
Debug.Assert(index == 0, "Implementation currently only supports index == 0");

if ((uint)(_pos + source.Length) > (uint)_span.Length)
{
Expand Down

0 comments on commit f8629e6

Please sign in to comment.