Skip to content

Commit f841952

Browse files
adding some comments
1 parent e73454f commit f841952

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/package.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ func (ic *ImportContext) Import(path string) (*types.Package, error) {
201201
return types.Unsafe, nil
202202
}
203203

204+
// By importing the archive, the package will compile if it hasn't been
205+
// compiled yet and the package will be added to the Packages map.
204206
a, err := ic.ImportArchive(path)
205207
if err != nil {
206208
return nil, err

0 commit comments

Comments
 (0)