diff --git a/Rules.md b/Rules.md index b3e9cd022..437b35a16 100644 --- a/Rules.md +++ b/Rules.md @@ -526,7 +526,6 @@ Option | Description + "bar" } -```diff - let foo: String - switch condition { + let foo = switch condition { @@ -537,7 +536,6 @@ Option | Description - foo = "bar" + "bar" } -``` // With --condassignment always (disabled by default) - switch condition { diff --git a/Sources/Examples.swift b/Sources/Examples.swift index dee7fd34e..f6cba9f33 100644 --- a/Sources/Examples.swift +++ b/Sources/Examples.swift @@ -1705,7 +1705,6 @@ private struct Examples { + "bar" } - ```diff - let foo: String - switch condition { + let foo = switch condition { @@ -1716,7 +1715,6 @@ private struct Examples { - foo = "bar" + "bar" } - ``` // With --condassignment always (disabled by default) - switch condition {