Skip to content

Commit d63d661

Browse files
committed
🎭 Replace debug prefix separators from [] to () to avoid confusion with Swift Arrays
1 parent 761941a commit d63d661

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/PrefixedUUID/PrefixedUUID.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ extension PrefixedUUID: CustomStringConvertible {
6060
}
6161

6262
extension PrefixedUUID: CustomDebugStringConvertible {
63-
public var debugDescription: String { "[\(Prefix.uuidPrefix)]\(uuid.uuidString)" }
63+
public var debugDescription: String { "(\(Prefix.uuidPrefix))\(uuid.uuidString)" }
6464
}
6565

6666
extension PrefixedUUID: RawRepresentable {

Tests/PrefixedUUIDTests/PrefixedUUIDTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ final class PrefixedUUIDTests: XCTestCase {
8686
let id = PrefixedUUID<UserIDPrefix>(uuid: uuid)
8787

8888
let result = String(reflecting: id)
89-
let expected = "[user_]\(uuid.uuidString)"
89+
let expected = "(user_)\(uuid.uuidString)"
9090

9191
XCTAssertEqual(result, expected)
9292
}

0 commit comments

Comments
 (0)