Update documentation for to_vec method to improve clarity

This commit is contained in:
Palash Tyagi 2025-07-04 00:53:15 +01:00
parent 2477b3e8f6
commit bc5cc65897

View File

@ -76,7 +76,7 @@ impl<T: Clone> Matrix<T> {
self.data self.data
} }
/// Creates a new Vec<T> containing the matrix data (cloned). /// Creates a new `Vec<T>` containing the matrix data (cloned).
pub fn to_vec(&self) -> Vec<T> { pub fn to_vec(&self) -> Vec<T> {
self.data.clone() self.data.clone()
} }