Skip to content

ST1021: structs named A do not have their proper documentation recognized. #1187

@twmb

Description

@twmb
package main

// A does foo.
type A struct{}

func main() {
	var a A
	println(a)
}
junk.go:3:1: ST1021: comment on exported type A should be of the form "A ..." (with optional leading article) (stylecheck)
// A does foo.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions