From 15bbbb29fd8a7fe74eea4c1b51ac28d088b6090a Mon Sep 17 00:00:00 2001 From: Lokathor Date: Sun, 3 Nov 2019 23:39:06 -0700 Subject: [PATCH] docs --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 43ff8db..f95fc0d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -214,9 +214,9 @@ pub fn try_cast_slice(a: &[A]) -> Result<&[B], PodCastError> { } } -/// Try to convert `&mut [T]` into `mut [U]` (possibly with a change in length). +/// Try to convert `&mut [T]` into `&mut [U]` (possibly with a change in length). /// -/// As [`try_cast_slice`], but `mut`. +/// As [`try_cast_slice`], but `&mut`. #[inline] pub fn try_cast_slice_mut(a: &mut [A]) -> Result<&mut [B], PodCastError> { // Note(Lokathor): everything with `align_of` and `size_of` will optimize away