Skip to content

Commit f5b84fb

Browse files
authored
Remove unnecessary brackets
1 parent 0a3c6d9 commit f5b84fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ let r = x.mapOr(42) { (v: String) -> Int in
5353
} // r == 3
5454
```
5555

56-
### mapOrElse\<T>\(_ def: () -> T, _ f: (Wrapped) -> T) -> T {
56+
### mapOrElse\<T>\(_ def: () -> T, _ f: (Wrapped) -> T) -> T
5757
Applies a function to the contained value (if any), or computes a default (if not).
5858
```swift
5959
let x: String? = nil

0 commit comments

Comments
 (0)