1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-26 08:07:33 +02:00

- fix merge swift conflict

- Merge master
This commit is contained in:
C. Bess
2014-09-02 18:52:04 -05:00
8 changed files with 425 additions and 69 deletions

View File

@@ -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)