Skip to content

Commit 378d399

Browse files
committed
refining the terminology
1 parent 150c64e commit 378d399

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Sources/PackageManagerDocs/Documentation.docc/ExploreDependencies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
You define constraints for dependencies when you add them to your package, and those constraints can not always be met.
88

99
<!-- link to CLI docs for swift package resolve -->
10-
Prior to running a build or test, or when you run `swift package resolve`, the package manager walks through the dependencies in your package, and all their dependencies recusively, to build a complete list.
10+
Prior to running a build or test, or when you run `swift package resolve`, the package manager walks through the dependencies in your package, and all their dependencies recursively, to build a complete list.
1111
It then attempts to choose a version of each dependency that fits within the constraints of your package, and any constraints provided by your dependencies.
1212

1313
If all the dependencies are available and resolved, the versions are recorded locally in the file `Package.resolved`.

Sources/PackageManagerDocs/Documentation.docc/IntroducingPackages.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ The manifest file, or package manifest, defines the package's name and its conte
1010
Each package declares `Products`, a list of what the package produces.
1111
Types of products include libraries, executables, and plugins:
1212

13-
- A library defines a module that can be imported by other code.
13+
- A library defines one or more modules that can be imported by other code.
1414
- An executable is a program that can be run by the operating system.
1515
- A plugin is executable code that the Swift Package Manager may use to provide additional commands or build capabilities.
1616

17-
The package can also declare `Dependencies`, most frequently other Swift packages that provide modules you use.
17+
The package can also declare `Dependencies`, that can include other Swift packages that provide modules you use.
1818
Dependencies can also provide macros, plugins, or reference system or binary (non-source) dependencies.
1919

2020
Each product is made up of one or more `Targets`, the basic building block of a Swift package.
21-
Each target specifies an output, may declare one or more dependencies on other targets within the same package and on products vended by the package’s dependencies.
21+
Each target specifies an module, may declare one or more dependencies on other targets within the same package and on products vended by the package’s dependencies.
2222
A target may define a library, a test suite, an executable, an macro, a binary dependency, and so on.
2323

2424
### About Modules
@@ -28,7 +28,7 @@ A module specifies a namespace and enforces access controls on which parts of th
2828
Each target you define in a Swift package is a module.
2929

3030
When you expose a library from a package, you expose the public API from your targets that make up that library for other packages to use.
31-
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.
31+
When you import a library in Swift, you're importing the modules that make up that library to use from your code, regardless of what language was used to create that module.
3232
A Swift package can also host C, C++, or Objective-C code as modules.
3333
Like Swift, these are also units of code distribution, but unlike Swift you expose the API that by hand-authoring a module-defining file (`module.modulemap`) that references a header or collection of headers with the API to expose.
3434

0 commit comments

Comments
 (0)