8000 DOC: Reguide fix · numpy/numpy@cd7fcb3 · GitHub
[go: up one dir, main page]

Skip to content

Commit cd7fcb3

Browse files
author
Bas van Beek
committed
DOC: Reguide fix
1 parent 38b0fc2 commit cd7fcb3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

numpy/core/_exceptions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,13 @@ class AxisError(ValueError, IndexError):
169169
The class constructor generally takes the axis and arrays'
170170
dimensionality as arguments:
171171
172-
>>> np.AxisError(2, 1, prefix='error')
173-
numpy.AxisError('error: axis 2 is out of bounds for array of dimension 1')
172+
>>> np.AxisError(2, 1, msg_prefix='error')
173+
AxisError('error: axis 2 is out of bounds for array of dimension 1')
174174
175175
Alternatively, a custom exception message can be passed:
176176
177177
>>> np.AxisError('Custom error message')
178-
numpy.AxisError('Custom error message')
178+
AxisError('Custom error message')
179179
180180
"""
181181

0 commit comments

Comments
 (0)
0