summaryrefslogtreecommitdiffhomepage
path: root/swift.html.markdown
diff options
context:
space:
mode:
authorC. Bess <cbess@cfaulks-air.pk5001z>2014-09-02 18:52:04 -0500
committerC. Bess <cbess@cfaulks-air.pk5001z>2014-09-02 18:52:04 -0500
commit313c0daf05ccb5624ae5009565eb01c5ddeaa022 (patch)
tree5f40a62e42e3a00fbe255328558dfcca7c3dd989 /swift.html.markdown
parentb50d4443cdca87e3342e2364c9e6afd2d7fce7d2 (diff)
parent0b3f3e01e245ab2f73226fe4ba09d567ca76aa98 (diff)
- fix merge swift conflict
- Merge master
Diffstat (limited to 'swift.html.markdown')
-rw-r--r--swift.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/swift.html.markdown b/swift.html.markdown
index f8fa31fe..e7f2f9a2 100644
--- a/swift.html.markdown
+++ b/swift.html.markdown
@@ -60,7 +60,7 @@ var occupations = [
"kaylee": "Mechanic"
]
occupations["Jayne"] = "Public Relations"
-let emptyDictionary = Dictionary<String, Float>()
+let emptyDictionary = [String: Float]()
//
@@ -226,7 +226,6 @@ public class Shape {
// If you just need to store data in a
// structured object, you should use a `struct`
-// A simple class `Square` extends `Shape`
internal class Rect: Shape {
var sideLength: Int = 1
@@ -271,6 +270,7 @@ internal class Rect: Shape {
}
}
+// A simple class `Square` extends `Rect`
class Square: Rect {
convenience init() {
self.init(sideLength: 5)