Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
tannergooding committed Oct 30, 2024
1 parent fcc3a28 commit c811318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xml/System/String.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4365,7 +4365,7 @@ The following example demonstrates the <xref:System.String.CopyTo%2A> method.
## Remarks
The initial content of the destination span passed to `action` is undefined. Therefore, it is the delegate's responsibility to ensure that every element of the span is assigned. Otherwise, the resulting string could contain random characters.

In order to support interop scenarios, the underlying buffer is guaranteed to be at least 1 greater than represented by the span parameter of the action callback. This additional index represents the null-terminator and if written that is the only value supported, writing any value other than the null-terminator will result in corrupting the string and is considered undefined behavior.
To support interop scenarios, the underlying buffer is guaranteed to be at least 1 greater than represented by the span parameter of the action callback. This additional index represents the null-terminator and, if written, that is the only value supported. Writing any value other than the null-terminator corrupts the string and is considered undefined behavior.
]]></format>
</remarks>
</Docs>
Expand Down

0 comments on commit c811318

Please sign in to comment.