Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
calda committed Jul 14, 2020
1 parent d62c54e commit 1e6f3f0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
24 changes: 12 additions & 12 deletions Rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -1598,29 +1598,29 @@ Wrap the opening brace of multiline conditionals.
<summary>Examples</summary>

```diff
- if foo,
if foo,
- bar {
- // ...
- }
// ...
}

+ if foo,
if foo,
+ bar
+ {
+ // ...
+ }
// ...
}
```

```diff
- guard foo,
guard foo,
- bar else {
- // ...
- }
// ...
}

+ guard foo,
guard foo,
+ bar else
+ {
+ // ...
+ }
// ...
}
```

</details>
Expand Down
24 changes: 12 additions & 12 deletions Sources/Examples.swift
Original file line number Diff line number Diff line change
Expand Up @@ -986,29 +986,29 @@ private struct Examples {

let wrapMultilineConditionalBraces = """
```diff
- if foo,
if foo,
- bar {
- // ...
- }
// ...
}
+ if foo,
if foo,
+ bar
+ {
+ // ...
+ }
// ...
}
```
```diff
- guard foo,
guard foo,
- bar else {
- // ...
- }
// ...
}
+ guard foo,
guard foo,
+ bar else
+ {
+ // ...
+ }
// ...
}
```
"""

Expand Down

0 comments on commit 1e6f3f0

Please sign in to comment.