@@ -85,16 +85,16 @@ fn main() {
85
85
86
86
## Preludes and ` no_std `
87
87
88
- All crates have a * prelude* that automatically inserts a [ use declaration ] into
89
- each [ module] and an [ ` extern crate] ` into the crate root module. By default,
90
- the * standard prelude * is used. The linked crate is [ ` std ` ] and the [ use
91
- delcaration ] uses [ ` std::prelude::v1::* ` ] .
88
+ All crates have a * prelude* that automatically inserts paths of a specific
89
+ module, the * prelude module * , into scope of each [ module] and an [ `extern
90
+ crate ] ` into the crate root module. By default, the * standard prelude * is used.
91
+ The linked crate is [ ` std ` ] and the prelude module is [ ` std::prelude::v1 ` ] .
92
92
93
93
The prelude can be changed to the * core prelude* by using the ` no_std `
94
94
[ attribute] on the root crate module. The linked crate is [ ` core ` ] and the
95
- [ ` use ` declaration ] uses [ ` core::prelude::v1::* ` ] . Using the core prelude over
96
- the standard prelude is useful when either the crate is targeting a platform
97
- that does not support the standard library or is purposefully not using the
95
+ prelude module is [ ` core::prelude::v1 ` ] . Using the core prelude over the
96
+ standard prelude is useful when either the crate is targeting a platform that
97
+ does not support the standard library or is purposefully not using the
98
98
capabilities of the standard library. Those capabilities are mainly dynamic
99
99
memory allocation (e.g. ` Box ` and ` Vec ` ) and file and network capabilities (e.g.
100
100
` std::fs ` and ` std::io ` ).
@@ -139,9 +139,9 @@ type must be one of the following:
139
139
[ _utf8 byte order mark_ ] : https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8
140
140
[ `Termination` ] : ../std/process/trait.Termination.html
141
141
[ `core` ] : ../core/index.html
142
- [ `core::prelude::v1::* ` ] : ../core/preludce.index.html
142
+ [ `core::prelude::v1` ] : ../core/preludce.index.html
143
143
[ `std` ] : ../std/index.html
144
- [ `std::prelude::v1::* ` ] : ../std/prelude/index.html
144
+ [ `std::prelude::v1` ] : ../std/prelude/index.html
145
145
[ `use` declaration ] : items/use-declarations.html
146
146
[ attribute ] : attributes.html
147
147
[ attributes ] : attributes.html
0 commit comments