dotnet / dotnet-api-docs

.NET API reference documentation (.NET 5+, .NET Core, .NET Framework)
https://docs.microsoft.com/dotnet/api/
Other
727 stars 1.56k forks source link

Doc Update: StringBuilder.Clear() changes Capacity in .NET Core #1983

Closed joshfree closed 5 years ago

joshfree commented 5 years ago

Before you open an issue

Issue description

https://github.com/dotnet/corefx/issues/34257https://github.com/dotnet/corefx/issues/34257 https://docs.microsoft.com/en-us/dotnet/api/system.text.stringbuilder.clear?view=netcore-2.2

Clear is a convenience method that is equivalent to setting the Length property of the current instance to 0 (zero). Calling the Clear method does not modify the current instance's Capacity or MaxCapacity property.

Target framework

remove sentence

Calling the Clear method does not modify the current instance's Capacity
mairaw commented 5 years ago

Closing as duplicate of https://github.com/dotnet/dotnet-api-docs/issues/1482