mirror of
https://github.com/jaywcjlove/reference.git
synced 2025-06-17 04:31:22 +08:00
doc: Update swift.md (#137)
This commit is contained in:
@ -190,7 +190,7 @@ let isMorning: Bool = true
|
|||||||
常量是不可变的。它们的值不能改变:
|
常量是不可变的。它们的值不能改变:
|
||||||
|
|
||||||
```swift
|
```swift
|
||||||
让 numberOfToys: Int = 8
|
let numberOfToys: Int = 8
|
||||||
numberOfToys += 1
|
numberOfToys += 1
|
||||||
// ❌ 错误:numberOfToys 不可变
|
// ❌ 错误:numberOfToys 不可变
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user