Skip to content

Commit c6b8bc7

Browse files
committed
Fix typos in the examples
1 parent 2580dfb commit c6b8bc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpnp/dpnp_array.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2031,11 +2031,11 @@ def tolist(self):
20312031
For a 1D array, ``a.tolist()`` is almost the same as ``list(a)``,
20322032
except that ``tolist`` changes 0D arrays to Python scalars:
20332033
2034-
>>> import numpy as np
2034+
>>> import dpnp as np
20352035
>>> a = np.array([1, 2])
20362036
>>> list(a)
20372037
[array(1), array(2)]
2038-
>>> a_tolist = a.tolist()
2038+
>>> a.tolist()
20392039
[1, 2]
20402040
20412041
Additionally, for a 2D array, ``tolist`` applies recursively:

0 commit comments

Comments
 (0)