From 4de2dfccd9cc85c44931cfa0eb23b5f041d309a9 Mon Sep 17 00:00:00 2001 From: Lars Date: Thu, 18 Feb 2016 08:11:38 +0100 Subject: [PATCH] Fix swift examples not compiling with latest Swift release --- examples/swift/count.swift | 2 +- examples/swift/greeter.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/swift/count.swift b/examples/swift/count.swift index 9d9a1d8f..3ed18f53 100755 --- a/examples/swift/count.swift +++ b/examples/swift/count.swift @@ -3,7 +3,7 @@ import AppKit for index in 1...10 { - println(index) + print(index) // Flush output fflush(__stdoutp) diff --git a/examples/swift/greeter.swift b/examples/swift/greeter.swift index 54428358..ac5a52b0 100755 --- a/examples/swift/greeter.swift +++ b/examples/swift/greeter.swift @@ -6,6 +6,6 @@ while(true){ var stdin = NSFileHandle.fileHandleWithStandardInput().availableData var line = NSString(data: stdin, encoding: NSUTF8StringEncoding)! var name = line.stringByTrimmingCharactersInSet(NSCharacterSet.newlineCharacterSet()) - println("Hello \(name)!") + print("Hello \(name)!") fflush(__stdoutp) }