Skip to content

Commit

Permalink
Merge pull request joewalnes#198 from larsblumberg/master
Browse files Browse the repository at this point in the history
Fix swift examples not compiling with latest Swift release
  • Loading branch information
asergeyev committed Feb 18, 2016
2 parents a9465cd + 4de2dfc commit 8b5bde7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/swift/count.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import AppKit

for index in 1...10 {
println(index)
print(index)

// Flush output
fflush(__stdoutp)
Expand Down
2 changes: 1 addition & 1 deletion examples/swift/greeter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 8b5bde7

Please sign in to comment.