Skip to content

strconv: QuoteToGraphic documentation on ASCII is wrong #36778

@pascaldekloe

Description

@pascaldekloe

QuoteToGraphic returns a double-quoted Go string literal representing s. The returned string uses Go escape sequences (\t, \n, \xFF, \u0100) for non-ASCII characters and non-printable characters as defined by IsGraphic.

The documentation reads like non-ASCII characters are escaped, and they are not. I'm not even sure that the mention of ASCII was ment to say here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions