Skip to content

Commit

Permalink
Fix typo and broken type annotations (airbnb#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jager-yoo authored Aug 15, 2022
1 parent cec2928 commit d1b1bda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ _You can enable the following settings in Xcode by running [this script](resourc

</details>

* <a id='omit-explicit-init'></a>(<a href='#omit-explicit-init'>link</a>) **Omit explicit `.init` when not reqired.** [![SwiftFormat: redundantInit](https://img.shields.io/badge/SwiftFormat-redundantInit-7B0051.svg)](https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#redundantInit)
* <a id='omit-explicit-init'></a>(<a href='#omit-explicit-init'>link</a>) **Omit explicit `.init` when not required.** [![SwiftFormat: redundantInit](https://img.shields.io/badge/SwiftFormat-redundantInit-7B0051.svg)](https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#redundantInit)

<details>

Expand Down Expand Up @@ -1655,7 +1655,7 @@ _You can enable the following settings in Xcode by running [this script](resourc

```swift
// WRONG
func age(of person, bornAt timeInterval) -> Int {
func age(of person: Person, bornAt: TimeInterval) -> Int {
// ...
}

Expand Down

0 comments on commit d1b1bda

Please sign in to comment.