Skip to content

strings: EqualFold is not equivalent to comparing ToLower #52204

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?)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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