mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Change swift class name to Square
This commit is contained in:
parent
013112b9b3
commit
c9400c2a7d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user