mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 19:14:32 -06:00
Be more precise about what's in the prelude
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user