Skip to content

Commit 317fa2f

Browse files
authored
Update String.Remove(int) documentation. (#11305)
Closes #11301.
1 parent 7cef9d4 commit 317fa2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System/String.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11592,7 +11592,7 @@ The following example demonstrates the <xref:System.String.PadRight%2A> method.
1159211592
<format type="text/markdown"><![CDATA[
1159311593

1159411594
## Remarks
11595-
In the .NET Framework, strings are zero-based. The value of the `startIndex` parameter can range from zero to one less than the length of the string instance.
11595+
In the .NET Framework, strings are zero-based. The value of the `startIndex` parameter can range from zero to the length of the string instance.
1159611596

1159711597
> [!NOTE]
1159811598
> This method does not modify the value of the current instance. Instead, it returns a new string in which all characters from position `startIndex` to the end of the original string have been removed.
@@ -11612,7 +11612,7 @@ The following example demonstrates the <xref:System.String.Remove%2A> method. Th
1161211612

1161311613
-or-
1161411614

11615-
<paramref name="startIndex" /> specifies a position that is not within this string.</exception>
11615+
<paramref name="startIndex" /> is greater than the length of this instance.</exception>
1161611616
<altmember cref="T:System.Int32" />
1161711617
<altmember cref="M:System.String.Concat(System.Object)" />
1161811618
<altmember cref="M:System.String.Insert(System.Int32,System.String)" />

0 commit comments

Comments
 (0)