Skip to content

go/doc: lineWrapper does not add // prefix while wrapping a line comment #20929

@rsc

Description

@rsc
$ go doc csv.Reader.ReuseRecord
struct Reader {
    // ReuseRecord controls whether calls to Read may return a slice sharing
    // the backing array of the previous call's returned slice for performance.
    // By default, each call to Read returns newly allocated memory owned by the
    caller.
    ReuseRecord bool
}

Note the "caller" line without a leading //. It should have one.

/cc @robpike

Metadata

Metadata

Assignees

No one assigned

    Labels

    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