diff --git a/doc/tutorial/generic.md b/doc/tutorial/generic.md index 62372e56f257..43459665be51 100644 --- a/doc/tutorial/generic.md +++ b/doc/tutorial/generic.md @@ -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::; + let n2: option::t = none; // or - let n2: option::t: none; + let n = none::; Note that, in a value expression, `<` already has a meaning as a comparison operator, so you'll have to write `::` to explicitly