Skip to content

Commit c9f1508

Browse files
owenvYogi
andauthored
Apply suggested typo fixes
Co-authored-by: Yogi <[email protected]>
1 parent f2de7d4 commit c9f1508

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

proposals/NNNN-multiple-variadic-parameters.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Lift the arbitrary restriction on variadic parameter count and allow a function/
7171

7272
## Detailed design
7373

74-
A variadic parameter can already appear anywhere in a parameter list, so the behavior of multiple variadic parameters in functions and intializers is fully specified by the existing language rules.
74+
A variadic parameter can already appear anywhere in a parameter list, so the behavior of multiple variadic parameters in functions and initializers is fully specified by the existing language rules.
7575

7676
```swift
7777
// Note the label on the second parameter is required because it follows a variadic parameter.
@@ -148,7 +148,7 @@ If this source-breaking change is considered unacceptable, there are two alterna
148148

149149
## Effect on ABI stability
150150

151-
This proposal does not require any changes to the ABI. The current ABI representation of variadic parameters already supports more than one per function/subscript/intializer.
151+
This proposal does not require any changes to the ABI. The current ABI representation of variadic parameters already supports more than one per function/subscript/initializer.
152152

153153
## Effect on API resilience
154154

@@ -162,4 +162,3 @@ Two alternative labeling rules were considered.
162162
2. If a parameter list has more than one variadic parameter, every variadic parameter except for the first must have a label.
163163

164164
Both alternatives are more restrictive in terms of the declarations they allow. This increases complexity and makes the parameter labeling rules harder to reason about. However, they might make it more difficult to write confusing APIs which mix variadic, defaulted, and required parameters. Overall, it seems better to trust programmers with greater flexibility, while also minimizing the number of rules they need to learn.
165-

0 commit comments

Comments
 (0)