Fix typo in tutorial

This commit is contained in:
Marijn Haverbeke 2011-11-21 13:20:02 +01:00
parent 2524636dbd
commit 8e2b5de90e

View file

@ -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