Auto merge of #29593 - ben0x539:reflect-doc-comment, r=steveklabnik
Rustdoc takes the first paragraph as a summary, so having a huge paragraph that ends with introducing an example looked somewhat wrong on the module page.
This commit is contained in:
@@ -382,11 +382,12 @@ mod impls {
|
|||||||
unsafe impl<'a, T: Send + ?Sized> Send for &'a mut T {}
|
unsafe impl<'a, T: Send + ?Sized> Send for &'a mut T {}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A marker trait indicates a type that can be reflected over. This
|
/// A marker trait indicates a type that can be reflected over.
|
||||||
/// trait is implemented for all types. Its purpose is to ensure that
|
///
|
||||||
/// when you write a generic function that will employ reflection,
|
/// This trait is implemented for all types. Its purpose is to ensure
|
||||||
/// that must be reflected (no pun intended) in the generic bounds of
|
/// that when you write a generic function that will employ
|
||||||
/// that function. Here is an example:
|
/// reflection, that must be reflected (no pun intended) in the
|
||||||
|
/// generic bounds of that function. Here is an example:
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// #![feature(reflect_marker)]
|
/// #![feature(reflect_marker)]
|
||||||
|
|||||||
Reference in New Issue
Block a user