Skip to content

Commit cafa9c2

Browse files
committed
Fix reference to numpy.char.slice
1 parent 56c900a commit cafa9c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/_core/strings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1670,10 +1670,10 @@ def slice(a, start=None, stop=None, step=None, /):
16701670
--------
16711671
>>> import numpy as np
16721672
>>> a = np.array(['hello', 'world'])
1673-
>>> np.char.slice(a, 2)
1673+
>>> np.strings.slice(a, 2)
16741674
array(['he', 'wo'], dtype='<U5')
16751675
1676-
>>> np.char.slice(a, 1, 5, 2)
1676+
>>> np.strings.slice(a, 1, 5, 2)
16771677
array(['el', 'ol'], dtype='<U5')
16781678
16791679
One can specify different start/stop/step for different array entries:

0 commit comments

Comments
 (0)