Skip to content

Commit 60af6d4

Browse files
authored
proofreading fixes on the version-specific manifests article (#9054)
applies proofreading fixes to the existing article on version-specific swift packages ### Motivation: Spotted a typo and wanted to resolve it ### Modifications: grammar, punctuation, and typos changes ### Result: clearer content
1 parent fc35c55 commit 60af6d4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Sources/PackageManagerDocs/Documentation.docc/SwiftVersionSpecificPackaging.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ Provide a package manifest for a specific version of Swift.
66

77
The package manager supports packages that work with a variety of versions, both the versions of the language and versions of the Swift toolchain, which provides the package manager.
88

9-
For language spcific version checks, use the language-specific version checks available in the source code.
10-
However, in some circumstances this may become unmanageable, specifically when the package manifest cannot be version agnostic.
9+
For language-specific version checks, use the language-specific version checks available in the source code.
10+
However, in some circumstances, this may become unmanageable, specifically when the package manifest cannot be version-agnostic.
1111
An example being when you adopt new features in the package manifest that aren't present in older versions.
1212

13-
The package manager supports for a mechanism to allow version-specific manifests to be used alongside a current manifest to support older versions of Swift.
13+
The package manager supports a mechanism to allow version-specific manifests to be used alongside a current manifest to support older versions of Swift.
1414

1515
### Version-specific Manifest Selection
1616

@@ -30,14 +30,14 @@ For example, if there are three manifests:
3030
- `[email protected]` (tools version 5.10)
3131
- `[email protected]` (tools version 5.9)
3232

33-
The package manager picks `Package.swift` on Swift 6 and above, because its tools version is most compatible with future version of the package manager.
34-
When using Swift 5.10, it picka `[email protected]`.
35-
Otherwise, when using Swift 5.9 it picks `[email protected]`, and this is the minimum tools version this package may be used with.
33+
The package manager picks `Package.swift` on Swift 6 and above, because its tools version is most compatible with future versions of the package manager.
34+
When using Swift 5.10, it picks `[email protected]`.
35+
Otherwise, when using Swift 5.9, it picks `[email protected]`, and this is the minimum tools version this package may be used with.
3636

3737
A package may have versioned manifest files which specify newer tools versions than its unversioned `Package.swift` file.
3838
In this scenario, the package manager uses the manifest corresponding to the newest-compatible tools version.
3939

40-
> Note: Support for having a versioned manifest file with a _newer_ tools version was required when the feature was first introduced, because prior versions of the package manager were not aware of the concept and only knew to look for the unversioned `Package.swift`. This is still supported, but there have been many Swift releases since the feature was introduced. It is a best practice to have `Package.swift` declare the newest-supported tools version and for versioned manifest files to only specifer older versions.
40+
> Note: Support for having a versioned manifest file with a _newer_ tools version was required when the feature was first introduced because prior versions of the package manager were not aware of the concept and only knew to look for the unversioned `Package.swift`. This is still supported, but there have been many Swift releases since the feature was introduced. It is a best practice to have `Package.swift` declare the newest-supported tools version and for versioned manifest files to only specify older versions.
4141
4242
### Version-specific tags when resolving remote dependencies
4343

0 commit comments

Comments
 (0)