Skip to content

Commit 8af0395

Browse files
committed
---
yaml --- r: 36855 b: refs/heads/try2 c: 36e2c10 h: refs/heads/master i: 36853: 124c843 36851: 4c61dc4 36847: 4ffbd5b v: v3
1 parent f80ff03 commit 8af0395

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: e06ca6524447fc0e1adeef683a52a8bfd4a27707
8+
refs/heads/try2: 36e2c100bfae61c8d7bc275829b4c9c9e66e7062
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

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