mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
There's still work left to do. In terms of next steps, there's still rdar://problem/22126141, which covers removing the 'workaround' overloads for print (that prevent bogus overload resolution failures), as well as providing a decent diagnostic when users invoke print with 'appendNewline'. Swift SVN r30976
8 lines
127 B
Swift
8 lines
127 B
Swift
public func countToFive() {
|
|
print(1, terminator: "")
|
|
for i in 2...5 {
|
|
print(" \(i)", terminator: "")
|
|
}
|
|
print("")
|
|
}
|