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
Reland "godoc: skip build tag annotations when displaying examples"
After moving the filepath.Walk example to a standalone example file
in CL 122237 (so it could use a standalone function), godoc includes
the build tag annotation ("// +build !windows,!plan9" in this case)
in the runnable example. The example runs correctly, but the
annotation might be confusing for new users.
I think godoc should skip these annotations when displaying examples.
Fixesgolang/go#26490.
Skipped the testcase for now, since it triggers a false positive:
golang/go#26627
Change-Id: I1da4b3b7e1e5a85a76773e25d9355b3f92479c19
0 commit comments