summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2015-10-31 18:28:30 +0800
committerAdam Bard <github@adambard.com>2015-10-31 18:28:30 +0800
commit589698d6a3377a61470a68f5ff79594b4bf5ea7b (patch)
tree43e7a33b7494ba7347bdfdc5f3099c1333f3c392
parentd7b6cd51662278cc9cff8a60cc9e3a6c87445e5b (diff)
parent9530122a1c956a25adb71bfd9cc1c516ff67d2f3 (diff)
Merge pull request #1915 from fdoxyz/patch-1
Include MARK style and two collection declarations
-rw-r--r--swift.html.markdown3
1 files changed, 3 insertions, 0 deletions
diff --git a/swift.html.markdown b/swift.html.markdown
index f451288d..1ca81bc2 100644
--- a/swift.html.markdown
+++ b/swift.html.markdown
@@ -25,6 +25,7 @@ import UIKit
// Xcode supports landmarks to annotate your code and lists them in the jump bar
// MARK: Section mark
+// MARK: - Section mark with a separator line
// TODO: Do something soon
// FIXME: Fix this code
@@ -128,6 +129,7 @@ shoppingList[1] = "bottle of water"
let emptyArray = [String]() // let == immutable
let emptyArray2 = Array<String>() // same as above
var emptyMutableArray = [String]() // var == mutable
+var explicitEmptyMutableStringArray: [String] = [] // same as above
// Dictionary
@@ -139,6 +141,7 @@ occupations["Jayne"] = "Public Relations"
let emptyDictionary = [String: Float]() // let == immutable
let emptyDictionary2 = Dictionary<String, Float>() // same as above
var emptyMutableDictionary = [String: Float]() // var == mutable
+var explicitEmptyMutableDictionary: [String: Float] = [:] // same as above
//