Skip to content

Commit f5ac6a8

Browse files
committed
Don't clear the span
1 parent 074792e commit f5ac6a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/LinkDotNet.StringBuilder/ValueStringBuilder.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,11 @@ public void AppendLine(ReadOnlySpan<char> str)
101101
/// <returns>True, if the copy was successful, otherwise false.</returns>
102102
public bool TryCopyTo(Span<char> destination) => buffer[..bufferPosition].TryCopyTo(destination);
103103

104+
/// <summary>
105+
/// Clears the st
106+
/// </summary>
104107
public void Clear()
105108
{
106-
buffer.Clear();
107109
bufferPosition = 0;
108110
}
109111

0 commit comments

Comments
 (0)