mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
828eb68e72
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("")
|
|
}
|