Skip to content

Commit 64c3039

Browse files
author
LinkDotNet Bot
committed
Updating to newest release
2 parents 78dfa7b + 58a2345 commit 64c3039

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ All notable changes to **ValueStringBuilder** will be documented in this file. T
66

77
## [Unreleased]
88

9+
## [2.3.1] - 2025-02-20
10+
11+
### Changed
12+
13+
- Optimized when the internal buffer should grow. Fixed by [@Aniobodo](https://github.com/Aniobodo).
14+
915
## [2.3.0] - 2025-02-16
1016

1117
### Added
@@ -467,7 +473,8 @@ This release brings extensions to the `ValueStringBuilder` API. For `v1.0` the `
467473

468474
- Initial release
469475

470-
[unreleased]: https://github.com/linkdotnet/StringBuilder/compare/2.3.0...HEAD
476+
[unreleased]: https://github.com/linkdotnet/StringBuilder/compare/2.3.1...HEAD
477+
[2.3.1]: https://github.com/linkdotnet/StringBuilder/compare/2.3.0...2.3.1
471478
[2.3.0]: https://github.com/linkdotnet/StringBuilder/compare/2.2.0...2.3.0
472479
[2.2.0]: https://github.com/linkdotnet/StringBuilder/compare/2.1.0...2.2.0
473480
[2.1.0]: https://github.com/linkdotnet/StringBuilder/compare/2.0.0...2.1.0

src/LinkDotNet.StringBuilder/ValueStringBuilder.EnsureCapacity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public ref partial struct ValueStringBuilder
1616
[MethodImpl(MethodImplOptions.AggressiveInlining)]
1717
public void EnsureCapacity(int newCapacity)
1818
{
19-
if (Length >= newCapacity)
19+
if (Capacity >= newCapacity)
2020
{
2121
return;
2222
}
@@ -54,4 +54,4 @@ private static int FindSmallestPowerOf2Above(int minimum)
5454
{
5555
return 1 << (int)Math.Ceiling(Math.Log2(minimum));
5656
}
57-
}
57+
}

0 commit comments

Comments
 (0)