内容错误
terminator不应该有空格,否则每个单词之间会有两个空格,英文版也没有空格
This commit is contained in:
@ -351,7 +351,7 @@ greeting.endIndex.successor() // error
|
||||
|
||||
```swift
|
||||
for index in greeting.characters.indices {
|
||||
print("\(greeting[index]) ", terminator: " ")
|
||||
print("\(greeting[index]) ", terminator: "")
|
||||
}
|
||||
// 打印输出 "G u t e n T a g !"
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user