summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAnthony Nguyen <anthony.nguyen@queensu.ca>2015-08-03 23:10:10 -0400
committerAnthony Nguyen <anthony.nguyen@queensu.ca>2015-08-03 23:10:10 -0400
commit775ac3b8595f80dd3229b7974672cf71d642d94f (patch)
tree29707bd281c5ff72a71ea88b1eba443a255f83f4
parentc4558c47eaf08d7a1d22789f1b0a38c23260fd18 (diff)
Updated print description on Swift
-rw-r--r--swift.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/swift.html.markdown b/swift.html.markdown
index 8e83a0b3..5ea8da6b 100644
--- a/swift.html.markdown
+++ b/swift.html.markdown
@@ -26,9 +26,9 @@ import UIKit
// TODO: Do something soon
// FIXME: Fix this code
-// In Swift 2, println and print were combined into one print method.
-print("Hello, world") // standard print
-print("Hello, world", appendNewLine: true) // appending a new line
+// In Swift 2, println and print were combined into one print method. Print automatically appends a new line.
+print("Hello, world") // println is now print
+print("Hello, world", appendNewLine: false) // printing without appending a newline
// variables (var) value can change after being set
// constants (let) value can NOT be changed after being set