mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib: implement new print() API
rdar://20775683 Swift SVN r28309
This commit is contained in:
@@ -740,7 +740,7 @@ extension Set: CustomStringConvertible, CustomDebugStringConvertible {
|
||||
} else {
|
||||
result += ", "
|
||||
}
|
||||
debugPrint(member, &result)
|
||||
debugPrint(member, &result, appendNewline: false)
|
||||
}
|
||||
result += isDebug ? "])" : "]"
|
||||
return result
|
||||
@@ -1279,15 +1279,15 @@ extension Dictionary : CustomStringConvertible, CustomDebugStringConvertible {
|
||||
result += ", "
|
||||
}
|
||||
if isDebug {
|
||||
debugPrint(k, &result)
|
||||
debugPrint(k, &result, appendNewline: false)
|
||||
} else {
|
||||
print(k, &result)
|
||||
print(k, &result, appendNewline: false)
|
||||
}
|
||||
result += ": "
|
||||
if isDebug {
|
||||
debugPrint(v, &result)
|
||||
debugPrint(v, &result, appendNewline: false)
|
||||
} else {
|
||||
print(v, &result)
|
||||
print(v, &result, appendNewline: false)
|
||||
}
|
||||
}
|
||||
result += "]"
|
||||
|
||||
Reference in New Issue
Block a user