1
0
mirror of https://github.com/golang/go synced 2024-11-18 13:24:39 -07:00

go/analysis/passes/inspect: fix incorrect example

Fixes golang/go#35028

Change-Id: I2239b966fdc0b98b3c92f3d0987ce2fd26ea1b4a
GitHub-Last-Rev: 511c3beb15e96ac40f491f85c15438598b2d0f39
GitHub-Pull-Request: golang/tools#177
Reviewed-on: https://go-review.googlesource.com/c/tools/+/202817
Reviewed-by: Agniva De Sarker <agniva.quicksilver@gmail.com>
Run-TryBot: Agniva De Sarker <agniva.quicksilver@gmail.com>
This commit is contained in:
Rohan Verma 2019-10-23 11:58:56 +00:00 committed by Agniva De Sarker
parent 0bbdf54eff
commit ff611c50cd

View File

@ -16,7 +16,7 @@
//
// var Analyzer = &analysis.Analyzer{
// ...
// Requires: reflect.TypeOf(new(inspect.Analyzer)),
// Requires: []*analysis.Analyzer{inspect.Analyzer},
// }
//
// func run(pass *analysis.Pass) (interface{}, error) {