Skip to content

Commit 7566b64

Browse files
authored
Typo in StringBuilder.xml (#4401)
1 parent bdcbe28 commit 7566b64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System.Text/StringBuilder.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4077,7 +4077,7 @@ The purpose of this method is to efficiently extract the data of a *constant* <x
40774077
40784078
The <xref:System.ReadOnlyMemory%601> chunks returned are not guaranteed to remain unchanged if the <xref:System.Text.StringBuilder> is modified, so do not cache them for later use.
40794079
4080-
Creating a <xref:System.ReadOnlySpan%601> from a <xref:System.ReadOnlyMemory%601> (as the <xref:System.ReadOnlyMemory%601.Span?displayProperty=nameWithType> method does in the previous example, is expensive, so create a local variable for the span if you need to use it in a nested `for` statement. For example:
4080+
Creating a <xref:System.ReadOnlySpan%601> from a <xref:System.ReadOnlyMemory%601> (as the <xref:System.ReadOnlyMemory%601.Span?displayProperty=nameWithType> method does in the previous example) is expensive, so create a local variable for the span if you need to use it in a nested `for` statement. For example:
40814081
40824082
```csharp
40834083
foreach (ReadOnlyMemory<char> chunk in sb.GetChunks())

0 commit comments

Comments
 (0)