-
Notifications
You must be signed in to change notification settings - Fork 17.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go/ast: drop //directive comments from doc.Text
This allows writing // F does a thing. //go:noinline func F() without the //go:noinline or other directive (such as //line) ending up looking like extra words in the doc comment. Fixes #37974. Change-Id: Ic738d72802cc2fa448f7633915e7126d2f76d8ca Reviewed-on: https://go-review.googlesource.com/c/go/+/224737 Reviewed-by: Robert Griesemer <gri@golang.org>
- Loading branch information
Showing
2 changed files
with
70 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters