You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is working as intended. The doc string comes from comments on the immediately preceding lines of a declaration. I don't see any reason to make this any more complicated. It also has worked for several years now w/o anybody complaining.
See http://play.golang.org/p/jFoDNNrB9y
I would expect a file that starts with
to have an ast.File.Doc comment of "a", but it has "".
Adding a newline before 'package' causes the File.Doc comment to become "a\n", as it should.
The text was updated successfully, but these errors were encountered: