diff --git a/src/lib.rs b/src/lib.rs
index 9f2c53d79..a2c1ce8bd 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1353,7 +1353,7 @@ impl ArrayPartsSized
/// use ndarray::{LayoutRef2, array};
///
/// fn aspect_ratio(layout: &T) -> (usize, usize)
-/// where T: AsRef>
+/// where T: AsRef> + ?Sized
/// {
/// let layout = layout.as_ref();
/// (layout.ncols(), layout.nrows())
@@ -1380,7 +1380,7 @@ impl ArrayPartsSized
/// }
///
/// impl Ratioable for T
-/// where T: AsRef> + AsMut>
+/// where T: AsRef> + AsMut> + ?Sized
/// {
/// fn aspect_ratio(&self) -> (usize, usize)
/// {