Skip to content

x/pkgsite: comments in [][]T are omitted in doc rendering #6917

@kortschak

Description

@kortschak
What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. mkdir foo && cd foo
2. curl http://play.golang.org/p/MdnYIPw4Ee.go > foo.go
3. godoc .

What is the expected output?

PACKAGE DOCUMENTATION

package foo
    import "."



VARIABLES

var NUC_4 = [][]int{
    /*       - A C G T */
    /* - */ {0, 0, 0, 0, 0},
    /* A */ {0, 5, -4, -4, -4},
    /* C */ {0, -4, 5, -4, -4},
    /* G */ {0, -4, -4, 5, -4},
    /* T */ {0, -4, -4, -4, 5},
}


What do you see instead?

PACKAGE DOCUMENTATION

package foo
    import "."



VARIABLES

var NUC_4 = [][]int{

    {0, 0, 0, 0, 0},
    {0, 5, -4, -4, -4},
    {0, -4, 5, -4, -4},
    {0, -4, -4, 5, -4},
    {0, -4, -4, -4, 5},
}


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.2
go.tools 25a7477727f3

Please provide any additional information below.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.pkgsite

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions