Skip to content

Commit c66a7c1

Browse files
committed
polish comment
Signed-off-by: kerthcet <kerthcet@gmail.com>
1 parent 0eb9c2a commit c66a7c1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

crates/mlxcore/src/array.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ impl Array {
121121
/// (row-major) element order rather than the raw storage buffer.
122122
///
123123
/// # Panics
124-
/// Panics if `T::DTYPE` does not match the array's dtype.
124+
/// Panics if `T::DTYPE` does not match the array's dtype, or if
125+
/// making the array contiguous fails.
125126
pub fn to_vec<T: ArrayElement>(&self) -> Vec<T> {
126127
// Materialize a row-contiguous copy: strided views (transpose) and
127128
// stride-0 views (broadcast) don't lay their logical elements out

0 commit comments

Comments
 (0)