Skip to content

Commit 45782a6

Browse files
---
yaml --- r: 128975 b: refs/heads/try c: 6d18922 h: refs/heads/master i: 128973: 93e03f8 128971: 8b7ec6c 128967: eb21c4c 128959: 8712dfb v: v3
1 parent 5664f45 commit 45782a6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 07d86b46a949a94223da714e35b343243e4ecce4
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a86d9ad15e339ab343a12513f9c90556f677b9ca
5-
refs/heads/try: 7ebb392fa9d8ead6b4680cbcc4eca5ad79732901
5+
refs/heads/try: 6d189220d19f32e1c0ebc4395cad58a2708fc574
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/doc/guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2148,7 +2148,7 @@ a function for that:
21482148
let input = io::stdin().read_line()
21492149
.ok()
21502150
.expect("Failed to read line");
2151-
let guess: Option<uint> = from_str(input.as_slice());
2151+
let input_num: Option<uint> = from_str(input.as_slice());
21522152
```
21532153

21542154
The `from_str` function takes in a `&str` value and converts it into something.
@@ -2170,8 +2170,8 @@ In this case, we say `x` is a `uint` explicitly, so Rust is able to properly
21702170
tell `random()` what to generate. In a similar fashion, both of these work:
21712171

21722172
```{rust,ignore}
2173-
let guess = from_str::<Option<uint>>("5");
2174-
let guess: Option<uint> = from_str("5");
2173+
let input_num = from_str::<Option<uint>>("5");
2174+
let input_num: Option<uint> = from_str("5");
21752175
```
21762176

21772177
In this case, I happen to prefer the latter, and in the `random()` case, I prefer

0 commit comments

Comments
 (0)