Update 09_Classes_and_Structures.md
变量名 tenEighty 和 alsoTenEighty 需更正保证程序正确
This commit is contained in:
@ -237,8 +237,8 @@ println("The frameRate property of tenEighty is now \(tenEighty.frameRate)")
|
|||||||
以下是运用这两个运算符检测两个常量或者变量是否引用同一个实例:
|
以下是运用这两个运算符检测两个常量或者变量是否引用同一个实例:
|
||||||
|
|
||||||
```swift
|
```swift
|
||||||
if tenEighty === alsoTenTighty {
|
if tenEighty === alsoTenEighty {
|
||||||
println("tenTighty and alsoTenEighty refer to the same Resolution instance.")
|
println("tenEighty and alsoTenEighty refer to the same Resolution instance.")
|
||||||
}
|
}
|
||||||
//输出 "tenEighty and alsoTenEighty refer to the same Resolution instance."
|
//输出 "tenEighty and alsoTenEighty refer to the same Resolution instance."
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user