File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ while count < 10 {
216216
217217Although Rust can almost always infer the types of local variables, you
218218can specify a variable's type by following it with a colon, then the type
219- name.
219+ name.
220220
221221~~~~
222222let monster_size: float = 57.8;
381381` [mut T] ` Mutable vector with unknown size
382382------------------------- -----------------------------------------------
383383
384+ > *** Note*** : In the future, mutability for vectors may be defined by
385+ > the slot that contains the vector, not the type of the vector itself,
386+ > deprecating [ mut T] syntax.
387+
384388In function types, the return type is specified with an arrow, as in
385389the type ` fn() -> bool ` or the function declaration `fn foo() -> bool
386390{ }`. For functions that do not return a meaningful value, you can
@@ -1951,7 +1955,7 @@ trait Printable {
19511955~~~~
19521956
19531957Traits may be implemented for specific types with [ impls] . An impl
1954- that implements a trait includes the name of the trait at the start of
1958+ that implements a trait includes the name of the trait at the start of
19551959the definition, as in the following impls of ` Printable ` for ` int `
19561960and ` ~str ` .
19571961
You can’t perform that action at this time.
0 commit comments