Skip to content

Commit

Permalink
fix docs on trait
Browse files Browse the repository at this point in the history
tests were failing because I didn't wrap code snippets like  in backticks. fixed that now, so hopefully tests will pass on travis
  • Loading branch information
mikeyhew committed Nov 1, 2018
1 parent 82f1f9a commit c29641e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libcore/ops/unsize.rs
Expand Up @@ -85,10 +85,10 @@ impl<T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for *const T {}
/// where `Self = dyn Trait` to the version where `Self = T`, the erased, sized type
/// of the underlying object.
///
/// CoerceSized is implemented for:
/// - &[T] is CoerceSized<&[T; N]> for any N
/// - &Trait is CoerceSized<&T> for any T: Trait
/// - and similarly for &mut T, *const T, *mut T, Box<T>, Rc<T>, Arc<T>
/// `CoerceSized` is implemented for:
/// - `&[T]` is `CoerceSized<&[T; N]>` for any `N`
/// - `&Trait` is `CoerceSized<&T>` for any `T: Trait`
/// - and similarly for `&mut T`, `*const T`, `*mut T`, `Box<T>`, `Rc<T>`, `Arc<T>`
#[unstable(feature = "coerce_sized", issue = "0")]
#[cfg_attr(not(stage0), lang = "coerce_sized")]
pub trait CoerceSized<T> where T: CoerceUnsized<Self> {
Expand Down

0 comments on commit c29641e

Please sign in to comment.