Length parameter description confusing for constructors with sbyte* #11136
Labels
area-System.Runtime
help wanted
Good for community contributors to help [up-for-grabs]
untriaged
New issue has not been triaged by the area owner
Type of issue
Typo
Description
There are two constructors on this page which take an sbyte* input parameter. For each, the
length
parameter is described as:Unlike the other constructors on this page, using the term 'characters' for these two is misleading. The number of characters within an sbyte* is variable, depending on how the decoding works out. Fortunately, what this parameter really wants is a count of the number of sbytes, not the (more difficult to calculate) number of characters.
Proposed replacement text:
Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.string.-ctor?view=net-9.0
Content source URL
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System/String.xml
Document Version Independent Id
90baab9e-9ef3-9bb5-d433-8d861d7fa876
Platform Id
ac6a36d8-9684-17ab-5b56-e2696ccb8adf
Article author
@dotnet-bot
The text was updated successfully, but these errors were encountered: