File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ let package = Package(
75
75
enabledTraits : [ // Other traits that are enabled when this trait is being enabled
76
76
" Foo" ,
77
77
]
78
- )
78
+ ),
79
79
.trait (
80
80
name : " FooBar" ,
81
81
enabledTraits : [
@@ -92,7 +92,7 @@ let package = Package(
92
92
When depending on a package the ` default ` trait is enabled. However, the enabled
93
93
traits can be customized by passing a set of enabled traits when declaring the
94
94
dependency. When specifying the enabled traits of the dependencies the
95
- ` .default ` trait can be passed which will enable the default trait. The below
95
+ ` .defaults ` trait can be passed which will enable the default trait. The below
96
96
example enables the default trait and the additional ` SomeTrait ` of the package.
97
97
98
98
``` swift
@@ -101,7 +101,7 @@ dependencies: [
101
101
url : " https://github.com/Org/SomePackage.git" ,
102
102
from : " 1.0.0" ,
103
103
traits : [
104
- .default ,
104
+ .defaults ,
105
105
" SomeTrait"
106
106
]
107
107
),
@@ -130,7 +130,7 @@ dependencies: [
130
130
url : " https://github.com/Org/SomePackage.git" ,
131
131
from : " 1.0.0" ,
132
132
traits :[
133
- .trait (" SomeOtherTrait" , condition : .when (traits : [" Foo" ])),
133
+ .trait (name : " SomeOtherTrait" , condition : .when (traits : [" Foo" ])),
134
134
]
135
135
),
136
136
]
You can’t perform that action at this time.
0 commit comments