From c811318e8c13f17e36c9817616e5cccf74cfa7d6 Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Wed, 30 Oct 2024 11:18:34 -0700 Subject: [PATCH] Apply suggestions from code review --- xml/System/String.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System/String.xml b/xml/System/String.xml index 825e4ddd05d..99fa8231345 100644 --- a/xml/System/String.xml +++ b/xml/System/String.xml @@ -4365,7 +4365,7 @@ The following example demonstrates the 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. ]]>