Skip to content

Commit a397890

Browse files
fix length description for string constructors with sbyte* (#11756)
1 parent 237ecbc commit a397890

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System/String.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ The sum of <paramref name="startIndex" /> and <paramref name="length" /> is grea
633633
<Docs>
634634
<param name="value">A pointer to an array of 8-bit signed integers. The integers are interpreted using the current system code page encoding on Windows (referred to as CP_ACP) and as UTF-8 encoding on non-Windows.</param>
635635
<param name="startIndex">The starting position within <paramref name="value" />.</param>
636-
<param name="length">The number of characters within <paramref name="value" /> to use.</param>
636+
<param name="length">The number of sbytes within <paramref name="value" /> to use.</param>
637637
<summary>Initializes a new instance of the <see cref="T:System.String" /> class to the value indicated by a specified pointer to an array of 8-bit signed integers, a starting position within that array, and a length.</summary>
638638
<remarks>
639639
<format type="text/markdown"><![CDATA[
@@ -723,7 +723,7 @@ A new instance of <see cref="T:System.String" /> could not be initialized using
723723
<Docs>
724724
<param name="value">A pointer to an array of 8-bit signed integers.</param>
725725
<param name="startIndex">The starting position within <paramref name="value" />.</param>
726-
<param name="length">The number of characters within <paramref name="value" /> to use.</param>
726+
<param name="length">The number of sbytes within <paramref name="value" /> to use.</param>
727727
<param name="enc">An object that specifies how the array referenced by <paramref name="value" /> is encoded. If <paramref name="enc" /> is <see langword="null" />, ANSI encoding is assumed.</param>
728728
<summary>Initializes a new instance of the <see cref="T:System.String" /> class to the value indicated by a specified pointer to an array of 8-bit signed integers, a starting position within that array, a length, and an <see cref="T:System.Text.Encoding" /> object.</summary>
729729
<remarks>

0 commit comments

Comments
 (0)