Skip to content

Commit c29641e

Browse files
committed
fix docs on trait
tests were failing because I didn't wrap code snippets like in backticks. fixed that now, so hopefully tests will pass on travis
1 parent 82f1f9a commit c29641e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/ops/unsize.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ impl<T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for *const T {}
8585
/// where `Self = dyn Trait` to the version where `Self = T`, the erased, sized type
8686
/// of the underlying object.
8787
///
88-
/// CoerceSized is implemented for:
89-
/// - &[T] is CoerceSized<&[T; N]> for any N
90-
/// - &Trait is CoerceSized<&T> for any T: Trait
91-
/// - and similarly for &mut T, *const T, *mut T, Box<T>, Rc<T>, Arc<T>
88+
/// `CoerceSized` is implemented for:
89+
/// - `&[T]` is `CoerceSized<&[T; N]>` for any `N`
90+
/// - `&Trait` is `CoerceSized<&T>` for any `T: Trait`
91+
/// - and similarly for `&mut T`, `*const T`, `*mut T`, `Box<T>`, `Rc<T>`, `Arc<T>`
9292
#[unstable(feature = "coerce_sized", issue = "0")]
9393
#[cfg_attr(not(stage0), lang = "coerce_sized")]
9494
pub trait CoerceSized<T> where T: CoerceUnsized<Self> {

0 commit comments

Comments
 (0)