fix typos in doc/tutorial.md
This commit is contained in:
parent
91abfd425d
commit
8b65a45879
@ -2811,7 +2811,7 @@ For every crate you can define a number of metadata items, such as link name, ve
|
|||||||
You can also toggle settings that have crate-global consequences. Both mechanism
|
You can also toggle settings that have crate-global consequences. Both mechanism
|
||||||
work by providing attributes in the crate root.
|
work by providing attributes in the crate root.
|
||||||
|
|
||||||
For example, Rust uniquely identifies crates by their link metadate, which includes
|
For example, Rust uniquely identifies crates by their link metadata, which includes
|
||||||
the link name and the version. It also hashes the filename and the symbols in a binary
|
the link name and the version. It also hashes the filename and the symbols in a binary
|
||||||
based on the link metadata, allowing you to use two different versions of the same library in a crate
|
based on the link metadata, allowing you to use two different versions of the same library in a crate
|
||||||
without conflict.
|
without conflict.
|
||||||
@ -2916,7 +2916,7 @@ As well as this line into every module body:
|
|||||||
use std::prelude::*;
|
use std::prelude::*;
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
The role of the `prelude` module is to re-exports common definitions from `std`.
|
The role of the `prelude` module is to re-export common definitions from `std`.
|
||||||
|
|
||||||
This allows you to use common types and functions like `Option<T>` or `println`
|
This allows you to use common types and functions like `Option<T>` or `println`
|
||||||
without needing to import them. And if you need something from `std` that's not in the prelude,
|
without needing to import them. And if you need something from `std` that's not in the prelude,
|
||||||
|
Loading…
Reference in New Issue
Block a user