Skip to content

Commit f3a58fe

Browse files
committed
---
yaml --- r: 38136 b: refs/heads/try c: 36e2c10 h: refs/heads/master v: v3
1 parent c886667 commit f3a58fe

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: 09bb07bed9166105ea961a42b5fff7739ae0d2e9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
5-
refs/heads/try: e06ca6524447fc0e1adeef683a52a8bfd4a27707
5+
refs/heads/try: 36e2c100bfae61c8d7bc275829b4c9c9e66e7062
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278

branches/try/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)