Fix typo in tutorial
This commit is contained in:
parent
2524636dbd
commit
8e2b5de90e
1 changed files with 2 additions and 2 deletions
|
|
@ -62,9 +62,9 @@ to assign a type to it. (The same goes for `[]`, in fact.) If you
|
|||
really want to have such a statement, you'll have to write it like
|
||||
this:
|
||||
|
||||
let n = none::<int>;
|
||||
let n2: option::t<int> = none;
|
||||
// or
|
||||
let n2: option::t<int>: none;
|
||||
let n = none::<int>;
|
||||
|
||||
Note that, in a value expression, `<` already has a meaning as a
|
||||
comparison operator, so you'll have to write `::<T>` to explicitly
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue