Skip to content

Commit 6ed09dc

Browse files
committed
---
yaml --- r: 35662 b: refs/heads/master c: 36e2c10 h: refs/heads/master v: v3
1 parent 3b2b120 commit 6ed09dc

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: e06ca6524447fc0e1adeef683a52a8bfd4a27707
2+
refs/heads/master: 36e2c100bfae61c8d7bc275829b4c9c9e66e7062
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024

trunk/doc/tutorial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,11 @@ qualified name. For more details, see the section on [crates](#crates).
221221

222222
Although Rust can almost always infer the types of local variables, you
223223
can specify a variable's type by following it with a colon, then the type
224-
name.
224+
name. Constants, an the other hand, always require a type annotation.
225225

226226
~~~~
227-
let monster_size: float = 57.8;
228-
let imaginary_size = monster_size * 10.0;
227+
const monster_factor: float = 57.8;
228+
let monster_size: float = monster_factor * 10.0;
229229
let monster_size: int = 50;
230230
~~~~
231231

0 commit comments

Comments
 (0)