1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-23 14:55:08 +02:00

Merge pull request #737 from agelber/fix_swift_class_name

[swift/en]Fix class name from Rect to Square
This commit is contained in:
Nami-Doc
2014-08-28 12:31:40 -04:00

View File

@@ -157,7 +157,7 @@ print(numbers) // [3, 6, 18]
// structured object, you should use a `struct`
// A simple class `Square` extends `Shape`
class Rect: Shape {
class Square: Shape {
var sideLength: Int = 1
// Custom getter and setter property