Skip to content

reflect: Slice documentation should note that an array must be addressable #4736

Closed
@kortschak

Description

@kortschak
What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. Navigate to http://tip.golang.org/pkg/reflect/#Value.Slice

What is the expected output?
Inclusion of a notice that Slice cannot be called on a unaddressable array
reflect.Value. 

What do you see instead?
No such warning.

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
Linux

Which version are you using?  (run 'go version')
go1.0.3/tip

Please provide any additional information below.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions