When I am writing code in an Xcode Playground, the Play Ground Print "/n" On latest of my code result. How can I fix it?
Asked
Active
Viewed 1,388 times
1 Answers
2
In swift 2, there has no println anymore.
Print is now equivalent to println before, so it has "\n".
The way to fix it:
print(saeed, terminator: "")
Khuong
- 10,526
- 13
- 75
- 108
-
Read what khuong said. If you add `terminator: ""` as a second parameter, it does not add a newline at the end of the line. – Duncan C Dec 26 '15 at 14:58