Skip to content

strings: EqualFold is not equivalent to comparing ToLower #52204

@bjkail

Description

@bjkail

#52022 added this statement to the doc for strings.EqualFold:

EqualFold(s, t) is equivalent to Tolower(s) == Tolower(t).

This program seems to be a counterexample.

(Additionally, it seems like the doc meant to say ToLower rather than Tolower?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions