@@ -61,7 +61,7 @@ func (lp *loadingPackage) analyze(loadMode LoadMode, loadSem chan struct{}) {
61
61
if err := lp .loadWithFacts (loadMode ); err != nil {
62
62
werr := errors .Wrapf (err , "failed to load package %s" , lp .pkg .Name )
63
63
// Don't need to write error to errCh, it will be extracted and reported on another layer.
64
- // Unblock depending actions and propagate error.
64
+ // Unblock depending on actions and propagate error.
65
65
for _ , act := range lp .actions {
66
66
close (act .analysisDoneCh )
67
67
act .err = werr
@@ -269,16 +269,16 @@ func (lp *loadingPackage) loadImportedPackageWithFacts(loadMode LoadMode) error
269
269
// Load package from export data
270
270
if loadMode >= LoadModeTypesInfo {
271
271
if err := lp .loadFromExportData (); err != nil {
272
- // We asked Go to give us up to date export data, yet
272
+ // We asked Go to give us up-to- date export data, yet
273
273
// we can't load it. There must be something wrong.
274
274
//
275
275
// Attempt loading from source. This should fail (because
276
276
// otherwise there would be export data); we just want to
277
277
// get the compile errors. If loading from source succeeds
278
- // we discard the result, anyway. Otherwise we'll fail
278
+ // we discard the result, anyway. Otherwise, we'll fail
279
279
// when trying to reload from export data later.
280
280
281
- // Otherwise it panics because uses already existing (from exported data) types.
281
+ // Otherwise, it panics because uses already existing (from exported data) types.
282
282
pkg .Types = types .NewPackage (pkg .PkgPath , pkg .Name )
283
283
if srcErr := lp .loadFromSource (loadMode ); srcErr != nil {
284
284
return srcErr
@@ -311,7 +311,7 @@ func (lp *loadingPackage) loadImportedPackageWithFacts(loadMode LoadMode) error
311
311
// Cached facts loading failed: analyze later the action from source. To perform
312
312
// the analysis we need to load the package from source code.
313
313
314
- // Otherwise it panics because uses already existing (from exported data) types.
314
+ // Otherwise, it panics because uses already existing (from exported data) types.
315
315
if loadMode >= LoadModeTypesInfo {
316
316
pkg .Types = types .NewPackage (pkg .PkgPath , pkg .Name )
317
317
}
0 commit comments