Skip to content

Commit 269e587

Browse files
committed
Rollup 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.
2 parents dd3778d + d7a3260 commit 269e587

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/libcore/marker.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -382,11 +382,12 @@ mod impls {
382382
unsafe impl<'a, T: Send + ?Sized> Send for &'a mut T {}
383383
}
384384

385-
/// A marker trait indicates a type that can be reflected over. This
386-
/// trait is implemented for all types. Its purpose is to ensure that
387-
/// when you write a generic function that will employ reflection,
388-
/// that must be reflected (no pun intended) in the generic bounds of
389-
/// that function. Here is an example:
385+
/// A marker trait indicates a type that can be reflected over.
386+
///
387+
/// This trait is implemented for all types. Its purpose is to ensure
388+
/// that when you write a generic function that will employ
389+
/// reflection, that must be reflected (no pun intended) in the
390+
/// generic bounds of that function. Here is an example:
390391
///
391392
/// ```
392393
/// #![feature(reflect_marker)]

0 commit comments

Comments
 (0)