修改代码段内容,去掉代码最后的双引号。
This commit is contained in:
@ -22,7 +22,7 @@ struct FixedLengthRange {
|
||||
var rangeOfThreeItems = FixedLengthRange(firstValue: 0, length: 3)
|
||||
// the range represents integer values 0, 1, and 2
|
||||
rangeOfThreeItems.firstValue = 6
|
||||
// the range now represents integer values 6, 7, and 8”
|
||||
// the range now represents integer values 6, 7, and 8
|
||||
|
||||
```
|
||||
|
||||
@ -36,7 +36,7 @@ rangeOfThreeItems.firstValue = 6
|
||||
let rangeOfFourItems = FixedLengthRange(firstValue: 0, length: 4)
|
||||
// this range represents integer values 0, 1, 2, and 3
|
||||
rangeOfFourItems.firstValue = 6
|
||||
// this will report an error, even thought firstValue is a variable property”
|
||||
// this will report an error, even thought firstValue is a variable property
|
||||
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user