mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Update Swift pre-decrement syntax to match v3.0 (#2395)
This commit is contained in:
parent
a8704d313b
commit
9234c9fea4
@ -373,7 +373,7 @@ internal class Rect: Shape {
|
||||
|
||||
func shrink() {
|
||||
if sideLength > 0 {
|
||||
--sideLength
|
||||
sideLength -= 1
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -378,7 +378,7 @@ internal class Rect: Shape {
|
||||
|
||||
func shrink() {
|
||||
if sideLength > 0 {
|
||||
--sideLength
|
||||
sideLength -= 1
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -353,7 +353,7 @@ internal class Rect: Shape {
|
||||
|
||||
func shrink() {
|
||||
if sideLength > 0 {
|
||||
--sideLength
|
||||
sideLength -= 1
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -379,7 +379,7 @@ internal class Rect: Shape {
|
||||
|
||||
func shrink() {
|
||||
if sideLength > 0 {
|
||||
--sideLength
|
||||
sideLength -= 1
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -374,7 +374,7 @@ internal class Rect: Shape {
|
||||
|
||||
func shrink() {
|
||||
if sideLength > 0 {
|
||||
--sideLength
|
||||
sideLength -= 1
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -443,7 +443,7 @@ internal class Rect: Shape {
|
||||
|
||||
func shrink() {
|
||||
if sideLength > 0 {
|
||||
--sideLength
|
||||
sideLength -= 1
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -373,7 +373,7 @@ internal class Rect: Shape {
|
||||
|
||||
func shrink() {
|
||||
if sideLength > 0 {
|
||||
--sideLength
|
||||
sideLength -= 1
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user