Skip to content

Commit

Permalink
Remove unnecessary parentheses in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisonMc555 committed Dec 18, 2023
1 parent 3511ec6 commit cb4aa2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ impl<T> Array2D<T> {
/// ```
/// # use array2d::{Array2D, Error};
/// # fn main() -> Result<(), Error> {
/// let iterator = (1..);
/// let iterator = 1..;
/// let array = Array2D::from_iter_row_major(iterator, 2, 3)?;
/// assert_eq!(array.as_rows(), vec![vec![1, 2, 3], vec![4, 5, 6]]);
/// # Ok(())
Expand Down Expand Up @@ -519,7 +519,7 @@ impl<T> Array2D<T> {
/// ```
/// # use array2d::{Array2D, Error};
/// # fn main() -> Result<(), Error> {
/// let iterator = (1..);
/// let iterator = 1..;
/// let array = Array2D::from_iter_column_major(iterator, 2, 3)?;
/// assert_eq!(array.as_rows(), vec![vec![1, 3, 5], vec![2, 4, 6]]);
/// # Ok(())
Expand Down

0 comments on commit cb4aa2d

Please sign in to comment.