Rollup merge of #101056 - kpreid:prim-doc, r=JohnTitor
Add the syntax of references to their documentation summary. Without this change, in <https://doc.rust-lang.org/1.63.0/std/#primitives>, `reference` is the only entry in that list which does not contain the syntax by which the type is named in source code. With this change, it contains them, in roughly the same way as the `pointer` entry does.
This commit is contained in:
commit
3bff15b7e3
@ -1223,7 +1223,7 @@ mod prim_usize {}
|
||||
#[doc(alias = "&")]
|
||||
#[doc(alias = "&mut")]
|
||||
//
|
||||
/// References, both shared and mutable.
|
||||
/// References, `&T` and `&mut T`.
|
||||
///
|
||||
/// A reference represents a borrow of some owned value. You can get one by using the `&` or `&mut`
|
||||
/// operators on a value, or by using a [`ref`](../std/keyword.ref.html) or
|
||||
|
@ -1223,7 +1223,7 @@ mod prim_usize {}
|
||||
#[doc(alias = "&")]
|
||||
#[doc(alias = "&mut")]
|
||||
//
|
||||
/// References, both shared and mutable.
|
||||
/// References, `&T` and `&mut T`.
|
||||
///
|
||||
/// A reference represents a borrow of some owned value. You can get one by using the `&` or `&mut`
|
||||
/// operators on a value, or by using a [`ref`](../std/keyword.ref.html) or
|
||||
|
Loading…
x
Reference in New Issue
Block a user