Skip to content

Commit 9388241

Browse files
authored
.grey -> .gray
Use standard American English spelling in Swift libraries.
1 parent 4c4ad66 commit 9388241

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Sources/TSCBasic/TerminalController.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public final class TerminalController {
4040

4141
case white
4242
case black
43-
case grey
43+
case gray
4444

4545
/// Returns the color code which can be prefixed on a string to display it in that color.
4646
fileprivate var string: String {
@@ -52,9 +52,12 @@ public final class TerminalController {
5252
case .cyan: return "\u{001B}[36m"
5353
case .white: return "\u{001B}[37m"
5454
case .black: return "\u{001B}[30m"
55-
case .grey: return "\u{001B}[30;1m"
55+
case .gray: return "\u{001B}[30;1m"
5656
}
5757
}
58+
59+
@available(*, deprecated, renamed: "gray")
60+
public static var grey: Self { .gray }
5861
}
5962

6063
/// Pointer to output stream to operate on.

0 commit comments

Comments
 (0)