Skip to content

Commit a6e492b

Browse files
committed
Move to doc links inside the prelude
1 parent 1275cc1 commit a6e492b

File tree

1 file changed

+26
-59
lines changed

1 file changed

+26
-59
lines changed

library/std/src/prelude/mod.rs

+26-59
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
//! such as [`std::io::prelude`]. Various libraries in the Rust ecosystem may
1818
//! also define their own preludes.
1919
//!
20-
//! [`std::io::prelude`]: ../io/prelude/index.html
20+
//! [`std::io::prelude`]: crate::io::prelude
2121
//!
2222
//! The difference between 'the prelude' and these other preludes is that they
2323
//! are not automatically `use`'d, and must be imported manually. This is still
@@ -49,67 +49,34 @@
4949
//! * [`std::iter`]::{[`Iterator`], [`Extend`], [`IntoIterator`],
5050
//! [`DoubleEndedIterator`], [`ExactSizeIterator`]}. Iterators of various
5151
//! kinds.
52-
//! * [`std::option`]::[`Option`]::{`self`, `Some`, `None`}. A type which
53-
//! expresses the presence or absence of a value. This type is so commonly
54-
//! used, its variants are also exported.
55-
//! * [`std::result`]::[`Result`]::{`self`, `Ok`, `Err`}. A type for functions
56-
//! that may succeed or fail. Like [`Option`], its variants are exported as
57-
//! well.
52+
//! * [`std::option`]::[`Option`]::{[`self`][`Option`], [`Some`], [`None`]}. A
53+
//! type which expresses the presence or absence of a value. This type is so
54+
//! commonly used, its variants are also exported.
55+
//! * [`std::result`]::[`Result`]::{[`self`][`Result`], [`Ok`], [`Err`]}. A type
56+
//! for functions that may succeed or fail. Like [`Option`], its variants are
57+
//! exported as well.
5858
//! * [`std::string`]::{[`String`], [`ToString`]}, heap allocated strings.
59-
//! * [`std::vec`]::[`Vec`](../vec/struct.Vec.html), a growable, heap-allocated
59+
//! * [`std::vec`]::[`Vec`], a growable, heap-allocated
6060
//! vector.
6161
//!
62-
//! [`AsMut`]: ../convert/trait.AsMut.html
63-
//! [`AsRef`]: ../convert/trait.AsRef.html
64-
//! [`Box`]: ../boxed/struct.Box.html
65-
//! [`Clone`]: ../clone/trait.Clone.html
66-
//! [`Copy`]: ../marker/trait.Copy.html
67-
//! [`Default`]: ../default/trait.Default.html
68-
//! [`DoubleEndedIterator`]: ../iter/trait.DoubleEndedIterator.html
69-
//! [`Drop`]: ../ops/trait.Drop.html
70-
//! [`Eq`]: ../cmp/trait.Eq.html
71-
//! [`ExactSizeIterator`]: ../iter/trait.ExactSizeIterator.html
72-
//! [`Extend`]: ../iter/trait.Extend.html
73-
//! [`FnMut`]: ../ops/trait.FnMut.html
74-
//! [`FnOnce`]: ../ops/trait.FnOnce.html
75-
//! [`Fn`]: ../ops/trait.Fn.html
76-
//! [`From`]: ../convert/trait.From.html
77-
//! [`IntoIterator`]: ../iter/trait.IntoIterator.html
78-
//! [`Into`]: ../convert/trait.Into.html
79-
//! [`Iterator`]: ../iter/trait.Iterator.html
80-
//! [`Option`]: ../option/enum.Option.html
81-
//! [`Ord`]: ../cmp/trait.Ord.html
82-
//! [`PartialEq`]: ../cmp/trait.PartialEq.html
83-
//! [`PartialOrd`]: ../cmp/trait.PartialOrd.html
84-
//! [`Result`]: ../result/enum.Result.html
85-
//! [`Send`]: ../marker/trait.Send.html
86-
//! [`Sized`]: ../marker/trait.Sized.html
87-
//! [`SliceConcatExt`]: ../slice/trait.SliceConcatExt.html
88-
//! [`String`]: ../string/struct.String.html
89-
//! [`Sync`]: ../marker/trait.Sync.html
90-
//! [`ToOwned`]: ../borrow/trait.ToOwned.html
91-
//! [`ToString`]: ../string/trait.ToString.html
92-
//! [`Unpin`]: ../marker/trait.Unpin.html
93-
//! [`Vec`]: ../vec/struct.Vec.html
94-
//! [`Clone::clone`]: ../clone/trait.Clone.html#tymethod.clone
95-
//! [`mem::drop`]: ../mem/fn.drop.html
96-
//! [`std::borrow`]: ../borrow/index.html
97-
//! [`std::boxed`]: ../boxed/index.html
98-
//! [`std::clone`]: ../clone/index.html
99-
//! [`std::cmp`]: ../cmp/index.html
100-
//! [`std::convert`]: ../convert/index.html
101-
//! [`std::default`]: ../default/index.html
102-
//! [`std::iter`]: ../iter/index.html
103-
//! [`std::marker`]: ../marker/index.html
104-
//! [`std::mem`]: ../mem/index.html
105-
//! [`std::ops`]: ../ops/index.html
106-
//! [`std::option`]: ../option/index.html
107-
//! [`std::prelude::v1`]: v1/index.html
108-
//! [`std::result`]: ../result/index.html
109-
//! [`std::slice`]: ../slice/index.html
110-
//! [`std::string`]: ../string/index.html
111-
//! [`std::vec`]: ../vec/index.html
112-
//! [`to_owned`]: ../borrow/trait.ToOwned.html#tymethod.to_owned
62+
//! [`mem::drop`]: crate::mem::drop
63+
//! [`std::borrow`]: crate::borrow
64+
//! [`std::boxed`]: crate::boxed
65+
//! [`std::clone`]: crate::clone
66+
//! [`std::cmp`]: crate::cmp
67+
//! [`std::convert`]: crate::convert
68+
//! [`std::default`]: crate::default
69+
//! [`std::iter`]: crate::iter
70+
//! [`std::marker`]: crate::marker
71+
//! [`std::mem`]: crate::mem
72+
//! [`std::ops`]: crate::ops
73+
//! [`std::option`]: crate::option
74+
//! [`std::prelude::v1`]: v1
75+
//! [`std::result`]: crate::result
76+
//! [`std::slice`]: crate::slice
77+
//! [`std::string`]: crate::string
78+
//! [`std::vec`]: module@crate::vec
79+
//! [`to_owned`]: crate::borrow::ToOwned::to_owned
11380
//! [book-closures]: ../../book/ch13-01-closures.html
11481
//! [book-dtor]: ../../book/ch15-03-drop.html
11582
//! [book-enums]: ../../book/ch06-01-defining-an-enum.html

0 commit comments

Comments
 (0)