Skip to content

Commit

Permalink
this one is also wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
akiraveliara committed Sep 25, 2023
1 parent a0eaacb commit 57c2afd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bundles/ValueCollections/ValueStack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public readonly ref T PeekRef()
{
if (this.count != 0)
{
return ref this.items[count];
return ref this.items[count - 1];
}

ThrowHelper.ThrowCollectionEmpty();
Expand Down

0 comments on commit 57c2afd

Please sign in to comment.