Skip to content

Commit e0f34fb

Browse files
committed
Minor fix-ups
1 parent c6b8015 commit e0f34fb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

proposals/NNNN-swiftpm-package-traits.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ for example is capable of running on top of `URLSession`, `AsyncHTTPClient`,
2727
`Hummingbird` or `Vapor`. To avoid bringing all of those potential dependencies
2828
into every adopters binary, the project has created individual repositories for
2929
each transport. This achieves the goal of making the dependencies optional;
30-
however, it requires users to discovery those adjacent repositories and add
30+
however, it requires users to discover those adjacent repositories and add
3131
additional dependencies to their project.
3232

3333
### Configurable behavior
@@ -87,7 +87,7 @@ let package = Package(
8787
)
8888
```
8989

90-
When depending on a package the default trait is enabled. However, the enabled
90+
When depending on a package the `default` trait is enabled. However, the enabled
9191
traits can be customized by passing a set of enabled traits when declaring the
9292
dependency. When specifying the enabled traits of the dependencies the
9393
`.default` trait can be passed which will enable the default trait. The below
@@ -634,6 +634,10 @@ A lot of the other considered names have other meanings in the language already.
634634
For example `feature` is already used in expressing compiler feature via
635635
`enable[Upcoming|Experimental]Feature` and the `hasFeature` check.
636636

637+
_Package traits_ are also consistent with [the "traits" concept in the
638+
`swift-testing`
639+
library](https://github.com/apple/swift-testing/blob/25d0eed9b339de36365ff16deb9a3d9c64322f1c/Sources/Testing/Traits/Trait.swift#L22).
640+
637641
### Using SPI instead
638642

639643
During the investigation how to solve the optional dependency problem `@_spi`

0 commit comments

Comments
 (0)