@@ -61,7 +61,7 @@ func (lp *loadingPackage) analyze(loadMode LoadMode, loadSem chan struct{}) {
6161 if err := lp .loadWithFacts (loadMode ); err != nil {
6262 werr := errors .Wrapf (err , "failed to load package %s" , lp .pkg .Name )
6363 // 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.
6565 for _ , act := range lp .actions {
6666 close (act .analysisDoneCh )
6767 act .err = werr
@@ -269,16 +269,16 @@ func (lp *loadingPackage) loadImportedPackageWithFacts(loadMode LoadMode) error
269269 // Load package from export data
270270 if loadMode >= LoadModeTypesInfo {
271271 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
273273 // we can't load it. There must be something wrong.
274274 //
275275 // Attempt loading from source. This should fail (because
276276 // otherwise there would be export data); we just want to
277277 // 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
279279 // when trying to reload from export data later.
280280
281- // Otherwise it panics because uses already existing (from exported data) types.
281+ // Otherwise, it panics because uses already existing (from exported data) types.
282282 pkg .Types = types .NewPackage (pkg .PkgPath , pkg .Name )
283283 if srcErr := lp .loadFromSource (loadMode ); srcErr != nil {
284284 return srcErr
@@ -311,7 +311,7 @@ func (lp *loadingPackage) loadImportedPackageWithFacts(loadMode LoadMode) error
311311 // Cached facts loading failed: analyze later the action from source. To perform
312312 // the analysis we need to load the package from source code.
313313
314- // Otherwise it panics because uses already existing (from exported data) types.
314+ // Otherwise, it panics because uses already existing (from exported data) types.
315315 if loadMode >= LoadModeTypesInfo {
316316 pkg .Types = types .NewPackage (pkg .PkgPath , pkg .Name )
317317 }
0 commit comments