Update ch02-00-guessing-game-tutorial.md

pull/17/head
usernameisnull 8 years ago committed by GitHub
parent 40ff598d5e
commit db150dfe0a

@ -169,7 +169,7 @@ io::stdin().read_line(&mut guess)
.expect("Failed to read line"); .expect("Failed to read line");
``` ```
当使用`.foo()`语法调用方法时,明智的选择是换行并留出空白(缩进)来把长的代码行拆开。我们可以把代码写成这样: 当使用`.expect()`语法调用方法时,明智的选择是换行并留出空白(缩进)来把长的代码行拆开。我们可以把代码写成这样:
```rust,ignore ```rust,ignore
io::stdin().read_line(&mut guess).expect("Failed to read line"); io::stdin().read_line(&mut guess).expect("Failed to read line");

Loading…
Cancel
Save