File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -207,14 +207,15 @@ let hi = "hi";
207
207
let mut count = 0;
208
208
209
209
while count < 10 {
210
- println!("count: {}", count);
210
+ println!("count is {}", count);
211
211
count += 1;
212
212
}
213
213
~~~~
214
214
215
- Although Rust can almost always infer the types of local variables, you
216
- can specify a variable's type by following it with a colon, then the type
217
- name. Static items, on the other hand, always require a type annotation.
215
+ Although Rust can almost always infer the types of local variables, you can
216
+ specify a variable's type by following it in the ` let ` with a colon, then the
217
+ type name. Static items, on the other hand, always require a type annotation.
218
+
218
219
219
220
~~~~
220
221
static MONSTER_FACTOR: f64 = 57.8;
You can’t perform that action at this time.
0 commit comments