correct all gramatical mistakes pointed by @Andlon

This commit is contained in:
Chammika Mannakkara 2021-05-04 12:29:25 +09:00
parent c420afde9e
commit 5d638a32b8
1 changed files with 3 additions and 3 deletions

View File

@ -133,18 +133,18 @@ impl<T> CooMatrix<T> {
/// Reserves capacity for COO matrix by at least `additional` elements. /// Reserves capacity for COO matrix by at least `additional` elements.
/// ///
/// This increase the capacities of triplet holding arrays by reserving more space to avoid /// This increase the capacities of triplet holding arrays by reserving more space to avoid
/// frequent reallocations, in `push` operations. /// frequent reallocations in `push` operations.
/// ///
/// ## Panics /// ## Panics
/// ///
/// Panics if any of the individual allocation of triplet arrays fail. /// Panics if any of the individual allocation of triplet arrays fails.
/// ///
/// ## Example /// ## Example
/// ///
/// ``` /// ```
/// # use nalgebra_sparse::coo::CooMatrix; /// # use nalgebra_sparse::coo::CooMatrix;
/// let mut coo = CooMatrix::new(4, 4); /// let mut coo = CooMatrix::new(4, 4);
/// // Reserver capacity in advance /// // Reserve capacity in advance
/// coo.reserve(10); /// coo.reserve(10);
/// coo.push(1, 0, 3.0); /// coo.push(1, 0, 3.0);
/// ``` /// ```