{"action":"closed","issue":{"url":"https://api.github.com/repos/golang/go/issues/12971","labels_url":"https://api.github.com/repos/golang/go/issues/12971/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/12971/comments","events_url":"https://api.github.com/repos/golang/go/issues/12971/events","html_url":"https://github.com/golang/go/issues/12971","id":111953518,"number":12971,"title":"cmd/doc: strange formatting on inline comment in struct with unexported field","user":{"login":"dsnet","id":6354026,"avatar_url":"https://avatars.githubusercontent.com/u/6354026?v=3","gravatar_id":"","url":"https://api.github.com/users/dsnet","html_url":"https://github.com/dsnet","followers_url":"https://api.github.com/users/dsnet/followers","following_url":"https://api.github.com/users/dsnet/following{/other_user}","gists_url":"https://api.github.com/users/dsnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dsnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsnet/subscriptions","organizations_url":"https://api.github.com/users/dsnet/orgs","repos_url":"https://api.github.com/users/dsnet/repos","events_url":"https://api.github.com/users/dsnet/events{/privacy}","received_events_url":"https://api.github.com/users/dsnet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/24","html_url":"https://github.com/golang/go/milestones/Go1.6","labels_url":"https://api.github.com/repos/golang/go/milestones/24/labels","id":1096159,"number":24,"title":"Go1.6","description":"","creator":{"login":"josharian","id":67496,"avatar_url":"https://avatars.githubusercontent.com/u/67496?v=3","gravatar_id":"","url":"https://api.github.com/users/josharian","html_url":"https://github.com/josharian","followers_url":"https://api.github.com/users/josharian/followers","following_url":"https://api.github.com/users/josharian/following{/other_user}","gists_url":"https://api.github.com/users/josharian/gists{/gist_id}","starred_url":"https://api.github.com/users/josharian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josharian/subscriptions","organizations_url":"https://api.github.com/users/josharian/orgs","repos_url":"https://api.github.com/users/josharian/repos","events_url":"https://api.github.com/users/josharian/events{/privacy}","received_events_url":"https://api.github.com/users/josharian/received_events","type":"User","site_admin":false},"open_issues":315,"closed_issues":206,"state":"open","created_at":"2015-05-05T02:39:06Z","updated_at":"2015-10-20T14:26:12Z","due_on":"2016-01-31T08:00:00Z","closed_at":null},"comments":1,"created_at":"2015-10-17T09:44:18Z","updated_at":"2015-10-20T14:26:12Z","closed_at":"2015-10-20T14:26:12Z","body":"Using ```go1.5```\r\n\r\nConsider this Go package:\r\n```go\r\npackage foo\r\n\r\ntype Reader struct {\r\n\tInputOffset  int64 // Total number of bytes read from underlying io.Reader.\r\n\tOutputOffset int64 // Total number of bytes emitted from Read.\r\n\thidden       int\r\n}\r\n```\r\n\r\nCurrently I see:\r\n```\r\n$ go doc Reader\r\ntype Reader struct {\r\n\tInputOffset  int64 // Total number of bytes read from underlying io.Reader.\r\n\tOutputOffset int64\r\n\t\t\t\t// Total number of bytes emitted from Read.\r\n\t// Has unexported fields.\r\n}\r\n```\r\n\r\nI expect to see:\r\n```\r\n$ go doc Reader\r\ntype Reader struct {\r\n\tInputOffset  int64 // Total number of bytes read from underlying io.Reader.\r\n\tOutputOffset int64 // Total number of bytes emitted from Read.\r\n\t// Has unexported fields.\r\n}\r\n```\r\n\r\n---\r\n\r\nOn a slightly related note, if you just comment out \"hidden\", but don't delete it, an extra newline is unnecessarily printed:\r\n```\r\n$ go doc Reader\r\ntype Reader struct {\r\n\tInputOffset  int64 // Total number of bytes read from underlying io.Reader.\r\n\tOutputOffset int64 // Total number of bytes emitted from Read.\r\n\r\n}\r\n```\r\n\r\n@robpike "}}