Skip to content

Commit 7a9b022

Browse files
committed
introducing modules, trying to make it clear that's not a Swift only construct
1 parent cda0f37 commit 7a9b022

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Sources/PackageManagerDocs/Documentation.docc/IntroducingPackages.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ A target may define a library, a test suite, an executable, an macro, a binary d
2323

2424
### About Modules
2525

26-
Swift organizes code into _modules_.
27-
Each module specifies a namespace and enforces access controls on which parts of that code can be used outside of that module.
26+
A Swift package organizes code into _modules_.
27+
A module specifies a namespace and enforces access controls on which parts of the code can be used outside of that module.
28+
When you import a library in Swift, you're importing a module to use from your code, regardless of what language was used to create that module.
2829

29-
A program may have all of its code in a single module, or it may import other modules as _dependencies_.
30+
A program may have all of its code in a single module, or it may import other modules as _dependencies_.
3031
Aside from the handful of system-provided modules, such as Darwin on macOS or Glibc on Linux, most dependencies require code to be downloaded and built in order to be used.
3132

3233
Extracting code that solves a particular problem into a separate module allows for that code to be reused in other situations.

0 commit comments

Comments
 (0)