Skip to content

Commit 8541cc8

Browse files
committed
fix failing doctest
1 parent f6e44a9 commit 8541cc8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/user-guide/arrays.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,11 +567,12 @@ Any combination of integer and slice can be used for block indexing::
567567
>>>
568568
>>> root = zarr.create_group('data/example-19.zarr')
569569
>>> foo = root.create_array(name='foo', shape=(1000, 100), chunks=(10, 10), dtype='float32')
570-
>>> bar = root.create_array(name='foo/bar', shape=(100,), dtype='int32')
570+
>>> bar = root.create_array(name='bar', shape=(100,), dtype='int32')
571571
>>> foo[:, :] = np.random.random((1000, 100))
572572
>>> bar[:] = np.arange(100)
573573
>>> root.tree()
574574
/
575+
├── bar (100,) int32
575576
└── foo (1000, 100) float32
576577
<BLANKLINE>
577578

0 commit comments

Comments
 (0)