Skip to content

Commit 8d32c16

Browse files
committed
[SE-0346] Fix error in code snippet in Alternatives considered
The return type of a convert-to-`Double` function should be `Double`, not `Int`. This looks like a copy-paste oversight.
1 parent 1f8e101 commit 8d32c16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proposals/0346-light-weight-same-type-syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ extension Convertible(from: String, to: Int) {
451451
}
452452

453453
extension Convertible(from: String, to: Double) {
454-
static func convert(_: String) -> Int
454+
static func convert(_: String) -> Double
455455
}
456456
```
457457

0 commit comments

Comments
 (0)