Skip to content

Commit

Permalink
Correct text about what exceptions ndindex raises
Browse files Browse the repository at this point in the history
  • Loading branch information
asmeurer committed Nov 24, 2023
1 parent b2bc4e6 commit 6c2e5e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ndindex/ndindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class NDIndexConstructor:
>>> ndindex[0:10, :]
Tuple(slice(0, 10, None), slice(None, None, None))
You can also create indices by calling `ndindex(idx)`. However, if you do
this, you cannot use the `a:b` slice syntax, as it is not syntactically
valid:
You can also create indices by calling `ndindex(idx)` like a function.
However, if you do this, you cannot use the `a:b` slice syntax, as it is
not syntactically valid:
>>> ndindex[0:10]
Slice(0, 10, None)
Expand Down

0 comments on commit 6c2e5e7

Please sign in to comment.