Be more precise about what's in the prelude

This commit is contained in:
Carol (Nichols || Goulding)
2016-11-11 10:40:31 -05:00
parent 0b18dddb42
commit d8eebfcfe1
+1 -1
View File
@@ -68,7 +68,7 @@ let float = Option::Some(5.0);
```
We've left in the `Option::` bit for consistency with the previous examples, but
since `Option<T>` is in the prelude, it's not needed:
since `use Option::*` is in the prelude, it's not needed:
```rust
let integer = Some(5);