Commit 5a550b69 authored by Russ Cox's avatar Russ Cox
Browse files

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: default avatarRobert Griesemer <gri@golang.org>
parent b13ce66d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment