-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Closed
Copy link
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.
Milestone
Description
The strconv.ParseInt documentation does not state that a leading + is permitted in the input string. This seems worth mentioning.
The documentation states that the input string's prefix indicates the base when the base argument is 0, but does not state that the base prefix must follow the sign when present. (e.g., "-0xf", not "0x-f".) "The string's prefix" is not quite accurate; perhaps this should state "the string's prefix following the sign".
Possibly strconv.ParseUint should explicitly document that it does not accept a leading +.
Also, we don't seem to have any test coverage for leading + characters in ParseInt/ParseUint input.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.