Skip to content

Commit 166a111

Browse files
alexbrainmanadonovan
authored andcommitted
go/loader: update examples Output
Some standard library dependencies have changed (packages and files). Both ExampleConfig_CreateFromFiles and ExampleConfig_Import Output needs to be adjusted. Do that. Update golang/go#11811 Change-Id: I523f2adc1aa46f0932a71ccb23dd7c5a6b07fb27 Reviewed-on: https://go-review.googlesource.com/12832 Reviewed-by: Alan Donovan <[email protected]>
1 parent 06e42bd commit 166a111

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

go/loader/example_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func ExampleConfig_CreateFromFiles() {
137137
// imported: []
138138
// initial: [hello]
139139
// all: [errors fmt hello io math os reflect runtime strconv sync sync/atomic syscall time unicode/utf8]
140-
// strconv.Files: [atob.go atof.go atoi.go decimal.go extfloat.go ftoa.go isprint.go itoa.go quote.go]
140+
// strconv.Files: [atob.go atof.go atoi.go decimal.go doc.go extfloat.go ftoa.go isprint.go itoa.go quote.go]
141141
}
142142

143143
// This example imports three packages, including the tests for one of
@@ -164,7 +164,7 @@ func ExampleConfig_Import() {
164164
// created: [strconv_test]
165165
// imported: [errors strconv unicode/utf8]
166166
// initial: [errors strconv strconv_test unicode/utf8]
167-
// all: [bufio bytes errors flag fmt io math math/rand os reflect runtime runtime/pprof sort strconv strconv_test strings sync sync/atomic syscall testing text/tabwriter time unicode unicode/utf8]
168-
// strconv.Files: [atob.go atof.go atoi.go decimal.go extfloat.go ftoa.go isprint.go itoa.go quote.go internal_test.go]
169-
// strconv_test.Files: [atob_test.go atof_test.go atoi_test.go decimal_test.go fp_test.go ftoa_test.go itoa_test.go quote_example_test.go quote_test.go strconv_test.go]
167+
// all: [bufio bytes errors flag fmt io log math math/rand os reflect runtime runtime/pprof runtime/trace sort strconv strconv_test strings sync sync/atomic syscall testing text/tabwriter time unicode unicode/utf8]
168+
// strconv.Files: [atob.go atof.go atoi.go decimal.go doc.go extfloat.go ftoa.go isprint.go itoa.go quote.go internal_test.go]
169+
// strconv_test.Files: [atob_test.go atof_test.go atoi_test.go decimal_test.go example_test.go fp_test.go ftoa_test.go itoa_test.go quote_test.go strconv_test.go]
170170
}

0 commit comments

Comments
 (0)