Skip to content

Commit

Permalink
Merge pull request #1319 from venkat0791/slicing_versus_numpy
Browse files Browse the repository at this point in the history
Fix comparison with NumPy of slicing with negative step
  • Loading branch information
Nil Goyette committed Aug 6, 2023
2 parents 9447328 + 8ec4d91 commit e21665f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/doc/ndarray_for_numpy_users/mod.rs
Expand Up @@ -111,7 +111,7 @@
//! When slicing in `ndarray`, the axis is first sliced with `start..end`. Then if
//! `step` is positive, the first index is the front of the slice; if `step` is
//! negative, the first index is the back of the slice. This means that the
//! behavior is the same as NumPy except when `step < -1`. See the docs for the
//! behavior is different from NumPy when `step < 0`. See the docs for the
//! [`s![]` macro][s!] for more details.
//!
//! </td>
Expand Down Expand Up @@ -246,8 +246,8 @@
//! methods [`.slice_mut()`][.slice_mut()], [`.slice_move()`][.slice_move()], and
//! [`.slice_collapse()`][.slice_collapse()].
//!
//! * The behavior of slicing is slightly different from NumPy for slices with
//! `step < -1`. See the docs for the [`s![]` macro][s!] for more details.
//! * The behavior of slicing is different from NumPy for slices with
//! `step < 0`. See the docs for the [`s![]` macro][s!] for more details.
//!
//! NumPy | `ndarray` | Notes
//! ------|-----------|------
Expand Down

0 comments on commit e21665f

Please sign in to comment.