Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
andreise committed Aug 21, 2023
1 parent 9eefc22 commit 1decb8a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal int Capacity

set
{
if (value >= length is not true)
if (InnerAllocHelper.IsWithin(length, value) is not true)
{
throw InnerBuilderExceptionFactory.CapacityOutOfRange_MustBeGreaterThanOrEqualToLength(value, length);
}
Expand Down

0 comments on commit 1decb8a

Please sign in to comment.