Skip to content

Commit

Permalink
Fix Rules.md entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
dabelknap committed Jun 11, 2018
1 parent b1d8ea7 commit e6517d9
Showing 1 changed file with 88 additions and 88 deletions.
176 changes: 88 additions & 88 deletions Rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -9995,51 +9995,6 @@ UIView.animate(withDuration: 1.0) {
}
```
```swift
switch myvar {
case MyFunc(x: [1, 2, YourFunc(a: 23)], y: 2):
var three = 3
fallthrough
default:
var three = 4
}
```
```swift
switch myvar {
case .alpha:
var one = 1
case .beta:
var three = 3
fallthrough
default:
var four = 4
}
```
```swift
let aPoint = (1, -1)
switch aPoint {
case let (x, y) where x == y:
let A = "A"
case let (x, y) where x == -y:
let B = "B"
fallthrough
default:
let C = "C"
}
```
```swift
switch myvar {
case MyFun(with: { $1 }):
let one = 1
fallthrough
case "abc":
let two = 2
}
```
</details>
<details>
<summary>Triggering Examples</summary>
Expand All @@ -10056,49 +10011,6 @@ UIView.animate(withDuration: 1.0, animations: {
}
```
```swift
switch myvar {
case MyFunc(x: [1, 2, YourFunc(a: 23)], y: 2):
↓fallthrough
default:
var three = 4
}
```
```swift
switch myvar {
case .alpha:
var one = 1
case .beta:
↓fallthrough
case .gamma:
var three = 3
default:
var four = 4
}
```
```swift
let aPoint = (1, -1)
switch aPoint {
case let (x, y) where x == y:
let A = "A"
case let (x, y) where x == -y:
↓fallthrough
default:
let B = "B"
}
```
```swift
switch myvar {
case MyFun(with: { $1 }):
↓fallthrough
case "abc":
let two = 2
}
```
</details>
Expand Down Expand Up @@ -10431,6 +10343,51 @@ case 2:
}
```
```swift
switch myvar {
case MyFunc(x: [1, 2, YourFunc(a: 23)], y: 2):
var three = 3
fallthrough
default:
var three = 4
}
```
```swift
switch myvar {
case .alpha:
var one = 1
case .beta:
var three = 3
fallthrough
default:
var four = 4
}
```
```swift
let aPoint = (1, -1)
switch aPoint {
case let (x, y) where x == y:
let A = "A"
case let (x, y) where x == -y:
let B = "B"
fallthrough
default:
let C = "C"
}
```
```swift
switch myvar {
case MyFun(with: { $1 }):
let one = 1
fallthrough
case "abc":
let two = 2
}
```
</details>
<details>
<summary>Triggering Examples</summary>
Expand Down Expand Up @@ -10473,6 +10430,49 @@ case 2:
}
```
```swift
switch myvar {
case MyFunc(x: [1, 2, YourFunc(a: 23)], y: 2):
↓fallthrough
default:
var three = 4
}
```
```swift
switch myvar {
case .alpha:
var one = 1
case .beta:
↓fallthrough
case .gamma:
var three = 3
default:
var four = 4
}
```
```swift
let aPoint = (1, -1)
switch aPoint {
case let (x, y) where x == y:
let A = "A"
case let (x, y) where x == -y:
↓fallthrough
default:
let B = "B"
}
```
```swift
switch myvar {
case MyFun(with: { $1 }):
↓fallthrough
case "abc":
let two = 2
}
```
</details>
Expand Down

0 comments on commit e6517d9

Please sign in to comment.