diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-11-21 13:20:02 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-11-21 13:20:02 +0100 |
| commit | 8e2b5de90ea5773db2ce980a252b0038f2eace2e (patch) | |
| tree | b1d19487dcf3253525b1b062a9aa070fb7defc43 /doc/tutorial/generic.md | |
| parent | 2524636dbde29fef7158f4becd5f957d43ea8a40 (diff) | |
| download | rust-8e2b5de90ea5773db2ce980a252b0038f2eace2e.tar.gz rust-8e2b5de90ea5773db2ce980a252b0038f2eace2e.zip | |
Fix typo in tutorial
Diffstat (limited to 'doc/tutorial/generic.md')
| -rw-r--r-- | doc/tutorial/generic.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/tutorial/generic.md b/doc/tutorial/generic.md index 62372e56f25..43459665be5 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::<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 |
