Skip to content

Commit fcc02ba

Browse files
hborlabeccadax
andcommitted
Update proposals/NNNN-parameter-packs.md
Co-authored-by: Becca Royal-Gordon <[email protected]>
1 parent 80b0888 commit fcc02ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proposals/NNNN-parameter-packs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func makePairs<each First, each Second>(
124124
return (repeat Pair(each first, each second))
125125
}
126126

127-
let pairs = makePairs(firsts: 1, "hello" seconds: true, 1.0)
127+
let pairs = makePairs(firsts: 1, "hello", seconds: true, 1.0)
128128
// 'pairs' is '(Pair(1, true), Pair("hello", 2.0))'
129129
```
130130

@@ -250,7 +250,7 @@ U := {Float, Double, Character}
250250
Then the substituted return type becomes a pair of function types:
251251

252252
```swift
253-
((Int) -> (Float, Double, Character), (String) -> (Float, Double, Character)>
253+
((Int) -> (Float, Double, Character), (String) -> (Float, Double, Character))
254254
```
255255

256256
Note that the entire replacement type pack for `U` was flattened in each repetition of the pattern type; we did not expand "across" `U`.

0 commit comments

Comments
 (0)