File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
src/LinkDotNet.StringBuilder Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments