Skip to content

spec: Conversions_from_slice_to_array_pointer: second len(s) comment should be len(t) ? #47280

@helloPiers

Description

@helloPiers

Copy/paste typo in this line:

t1 := (*[1]string)(t) // panics: len([1]string) > len(s)

This

t1 := (*[1]string)(t) // panics: len([1]string) > len(s)

Should be

t1 := (*[1]string)(t) // panics: len([1]string) > len(t)

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

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions