summaryrefslogtreecommitdiffstats
path: root/llgo/third_party/gotools/go/pointer/example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'llgo/third_party/gotools/go/pointer/example_test.go')
-rw-r--r--llgo/third_party/gotools/go/pointer/example_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/llgo/third_party/gotools/go/pointer/example_test.go b/llgo/third_party/gotools/go/pointer/example_test.go
index d32cc29574d..a8a2cb13fbe 100644
--- a/llgo/third_party/gotools/go/pointer/example_test.go
+++ b/llgo/third_party/gotools/go/pointer/example_test.go
@@ -41,10 +41,10 @@ func main() {
i.f(x) // dynamic method call
}
`
- // Construct a loader.
- conf := loader.Config{SourceImports: true}
+ var conf loader.Config
- // Parse the input file.
+ // Parse the input file, a string.
+ // (Command-line tools should use conf.FromArgs.)
file, err := conf.ParseFile("myprog.go", myprog)
if err != nil {
fmt.Print(err) // parse error
OpenPOWER on IntegriCloud