Skip to content

Commit cbeecfd

Browse files
committed
Fix doctests
1 parent be0d904 commit cbeecfd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/blockaxis.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ julia> A = BlockArray([1,2,3],[2,1])
289289
3
290290
291291
julia> blockaxes(A)
292-
(BlockRange(Base.OneTo(2)),)
292+
(BlockRange((2,)),)
293293
294294
julia> B = BlockArray(zeros(3,4), [1,2], [1,2,1])
295295
2×3-blocked 3×4 BlockMatrix{Float64}:
@@ -299,7 +299,7 @@ julia> B = BlockArray(zeros(3,4), [1,2], [1,2,1])
299299
0.0 │ 0.0 0.0 │ 0.0
300300
301301
julia> blockaxes(B)
302-
(BlockRange(Base.OneTo(2)), BlockRange(Base.OneTo(3)))
302+
(BlockRange((2,)), BlockRange((3,)))
303303
```
304304
"""
305305
blockaxes(b::AbstractBlockedUnitRange) = _blockaxes(blocklasts(b))
@@ -322,7 +322,7 @@ julia> A = BlockArray([1,2,3], [2,1])
322322
3
323323
324324
julia> blockaxes(A,1)
325-
BlockRange(Base.OneTo(2))
325+
BlockRange((2,))
326326
327327
julia> blockaxes(A,1) |> collect
328328
2-element Vector{Block{1, Int64}}:

0 commit comments

Comments
 (0)