From c29641e067d44c754fbc6a40e463a7e4d45ab31e Mon Sep 17 00:00:00 2001 From: Michael Hewson Date: Fri, 21 Sep 2018 02:16:29 -0400 Subject: [PATCH] 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 --- src/libcore/ops/unsize.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libcore/ops/unsize.rs b/src/libcore/ops/unsize.rs index 4faace26b02f9..0112258134dd0 100644 --- a/src/libcore/ops/unsize.rs +++ b/src/libcore/ops/unsize.rs @@ -85,10 +85,10 @@ impl, 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, Rc, Arc +/// `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`, `Rc`, `Arc` #[unstable(feature = "coerce_sized", issue = "0")] #[cfg_attr(not(stage0), lang = "coerce_sized")] pub trait CoerceSized where T: CoerceUnsized {