Skip to content

Commit 37ad404

Browse files
committed
Added hint why Trim doesn't call Start and End
1 parent 8598a4e commit 37ad404

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/LinkDotNet.StringBuilder/ValueStringBuilder.Trim.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public ref partial struct ValueStringBuilder
1010
[MethodImpl(MethodImplOptions.AggressiveInlining)]
1111
public void Trim()
1212
{
13+
// Hint: We don't want to call TrimStart and TrimEnd because we don't want to copy the buffer twice.
1314
var start = 0;
1415
var end = bufferPosition - 1;
1516

0 commit comments

Comments
 (0)