Skip to content

Commit 8e2b5de

Browse files
committed
Fix typo in tutorial
1 parent 2524636 commit 8e2b5de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/tutorial/generic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ to assign a type to it. (The same goes for `[]`, in fact.) If you
6262
really want to have such a statement, you'll have to write it like
6363
this:
6464

65-
let n = none::<int>;
65+
let n2: option::t<int> = none;
6666
// or
67-
let n2: option::t<int>: none;
67+
let n = none::<int>;
6868

6969
Note that, in a value expression, `<` already has a meaning as a
7070
comparison operator, so you'll have to write `::<T>` to explicitly

0 commit comments

Comments
 (0)