Skip to content

Commit e21665f

Browse files
author
Nil Goyette
authored
Merge pull request #1319 from venkat0791/slicing_versus_numpy
Fix comparison with NumPy of slicing with negative step
2 parents 9447328 + 8ec4d91 commit e21665f

File tree

1 file changed

+3
-3
lines changed
  • src/doc/ndarray_for_numpy_users

1 file changed

+3
-3
lines changed

src/doc/ndarray_for_numpy_users/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
//! When slicing in `ndarray`, the axis is first sliced with `start..end`. Then if
112112
//! `step` is positive, the first index is the front of the slice; if `step` is
113113
//! negative, the first index is the back of the slice. This means that the
114-
//! behavior is the same as NumPy except when `step < -1`. See the docs for the
114+
//! behavior is different from NumPy when `step < 0`. See the docs for the
115115
//! [`s![]` macro][s!] for more details.
116116
//!
117117
//! </td>
@@ -246,8 +246,8 @@
246246
//! methods [`.slice_mut()`][.slice_mut()], [`.slice_move()`][.slice_move()], and
247247
//! [`.slice_collapse()`][.slice_collapse()].
248248
//!
249-
//! * The behavior of slicing is slightly different from NumPy for slices with
250-
//! `step < -1`. See the docs for the [`s![]` macro][s!] for more details.
249+
//! * The behavior of slicing is different from NumPy for slices with
250+
//! `step < 0`. See the docs for the [`s![]` macro][s!] for more details.
251251
//!
252252
//! NumPy | `ndarray` | Notes
253253
//! ------|-----------|------

0 commit comments

Comments
 (0)