Skip to content

go/doc: IsPredeclared missing clear, min, max #68028

Closed
@jfrech

Description

@jfrech

Go version

1.22.4

Output of go env in your module/workspace:

go.dev/play "Go 1.22"

What did you do?

I browsed https://cs.opensource.google/go/go/+/refs/tags/go1.22.4:src/go/doc/reader.go;l=979 and got curious when not finding "max" in said set.

What did you see happen?

As https://go.dev/play/p/r88vggchOkT demonstrates, "clear", "max" and "min" aren't regarded as [go/doc.IsPredeclared].

What did you expect to see?

As per the specification (cf. https://go.dev/ref/spec#Predeclared_identifiers [2024-06-17]), "clear", "max" and "min" are categorized as predeclared which [go/doc.IsPredeclared] should reflect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixPendingIssues that have a fix which has not yet been reviewed or submitted.NeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions