Skip to content

Commit 0f4fabe

Browse files
committed
[Grouped diagnostics] Fix a stray, incorrect dash
1 parent 68934ce commit 0f4fabe

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Sources/SwiftDiagnostics/GroupedDiagnostics.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ extension GroupedDiagnostics {
180180
boxSuffix = ""
181181
}
182182

183-
prefixString = colorizeBufferOutline(padding + "-── ") + sourceFile.displayName + " " + boxSuffix + "\n"
184-
suffixString = colorizeBufferOutline(padding + "-──" + String(repeating: "", count: sourceFile.displayName.count + 2)) + boxSuffix + "\n"
183+
prefixString = colorizeBufferOutline(padding + "── ") + sourceFile.displayName + " " + boxSuffix + "\n"
184+
suffixString = colorizeBufferOutline(padding + "──" + String(repeating: "", count: sourceFile.displayName.count + 2)) + boxSuffix + "\n"
185185
}
186186

187187
// Render the buffer.

Tests/SwiftDiagnosticsTest/GroupDiagnosticsFormatterTests.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ final class GroupedDiagnosticsFormatterTests: XCTestCase {
115115
1 │ let pi = 3.14159
116116
2 │ #myAssert(pi == 3)
117117
∣ ╰─ in expansion of macro 'myAssert' here
118-
-── #myAssert ───────────────────────────────────────────────────────
118+
── #myAssert ───────────────────────────────────────────────────────
119119
│1 │ let __a = pi
120120
│2 │ let __b = 3
121121
│3 │ if !(__a == __b) {
122122
│ ∣ ╰─ no matching operator '==' for types 'Double' and 'Int'
123123
│4 │ fatalError("assertion failed: pi != 3")
124124
│5 │ }
125-
-────────────────────────────────────────────────────────────────────
125+
────────────────────────────────────────────────────────────────────
126126
3 │ print("hello"
127127
∣ ╰─ expected ')' to end function call
128128
@@ -184,18 +184,18 @@ final class GroupedDiagnosticsFormatterTests: XCTestCase {
184184
1 │ let pi = 3.14159
185185
2 │ #myAssert(pi == 3)
186186
∣ ╰─ in expansion of macro 'myAssert' here
187-
-── #myAssert ───────────────────────────────────────────────────────
187+
── #myAssert ───────────────────────────────────────────────────────
188188
│1 │ let __a = pi
189189
│2 │ let __b = 3
190190
│3 │ if #invertedEqualityCheck(__a, __b) {
191191
│ ∣ ╰─ in expansion of macro 'invertedEqualityCheck' here
192-
│ ╭-── #invertedEqualityCheck ───────────────────────────────────────
192+
│ ╭── #invertedEqualityCheck ───────────────────────────────────────
193193
│ │1 │ !(__a == __b)
194194
│ │ ∣ ╰─ no matching operator '==' for types 'Double' and 'Int'
195-
│ ╰-─────────────────────────────────────────────────────────────────
195+
│ ╰─────────────────────────────────────────────────────────────────
196196
│4 │ fatalError("assertion failed: pi != 3")
197197
│5 │ }
198-
-────────────────────────────────────────────────────────────────────
198+
────────────────────────────────────────────────────────────────────
199199
3 │ print("hello"
200200
∣ ╰─ expected ')' to end function call
201201

0 commit comments

Comments
 (0)