doc: Update swift.md (#137)

This commit is contained in:
WHB 2022-11-18 16:36:40 +08:00 committed by GitHub
parent 3ce76d3089
commit 7f3a01ab23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -190,7 +190,7 @@ let isMorning: Bool = true
常量是不可变的。它们的值不能改变:
```swift
numberOfToys: Int = 8
let numberOfToys: Int = 8
numberOfToys += 1
// ❌ 错误numberOfToys 不可变
```