Skip to content

Commit 40fbd2f

Browse files
committed
Define 'package' in the reference
1 parent aaec275 commit 40fbd2f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

TSPL.docc/ReferenceManual/Declarations.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3880,6 +3880,13 @@ Access control is discussed in detail in <doc:AccessControl>.
38803880
Apply this modifier to a declaration
38813881
to indicate that the declaration can be accessed
38823882
only by code in the same package as the declaration.
3883+
A package is a unit of code distribution
3884+
that you define in the build system you're using.
3885+
When the build system compiles code,
3886+
it specifies the package name
3887+
by passing the `-package-name` flag to the Swift compiler.
3888+
Two modules are part of the same package
3889+
if the build system specifies the same package name when building them both.
38833890

38843891
- term `internal`:
38853892
Apply this modifier to a declaration to indicate the declaration can be accessed

0 commit comments

Comments
 (0)