mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-09-03 03:33:15 +02:00
Update Swift pre-decrement syntax to match v3.0 (#2395)
This commit is contained in:
@@ -379,7 +379,7 @@ internal class Rect: Shape {
|
||||
|
||||
func shrink() {
|
||||
if sideLength > 0 {
|
||||
--sideLength
|
||||
sideLength -= 1
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user