File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ while count < 10 {
216
216
217
217
Although Rust can almost always infer the types of local variables, you
218
218
can specify a variable's type by following it with a colon, then the type
219
- name.
219
+ name.
220
220
221
221
~~~~
222
222
let monster_size: float = 57.8;
381
381
` [mut T] ` Mutable vector with unknown size
382
382
------------------------- -----------------------------------------------
383
383
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
+
384
388
In function types, the return type is specified with an arrow, as in
385
389
the type ` fn() -> bool ` or the function declaration `fn foo() -> bool
386
390
{ }`. For functions that do not return a meaningful value, you can
@@ -1951,7 +1955,7 @@ trait Printable {
1951
1955
~~~~
1952
1956
1953
1957
Traits 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
1955
1959
the definition, as in the following impls of ` Printable ` for ` int `
1956
1960
and ` ~str ` .
1957
1961
You can’t perform that action at this time.
0 commit comments