Skip to content

Commit 8554840

Browse files
committed
Fix more doctests
1 parent cbeecfd commit 8554840

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/src/man/blockarrays.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ julia> view(A, Block(2)) .= [3,4]; A[Block(2)]
151151
4.0
152152
153153
julia> view(A, Block.(1:2))
154-
3-element view(::BlockVector{Float64, Vector{Vector{Float64}}, Tuple{BlockedOneTo{Int64, ArrayLayouts.RangeCumsum{Int64, UnitRange{Int64}}}}}, BlockSlice(BlockRange(1:2),1:1:3)) with eltype Float64 with indices BlockedOneTo([1, 3]):
154+
3-element view(::BlockVector{Float64, Vector{Vector{Float64}}, Tuple{BlockedOneTo{Int64, ArrayLayouts.RangeCumsum{Int64, UnitRange{Int64}}}}}, BlockSlice(BlockRange((1:2,)),1:1:3)) with eltype Float64 with indices BlockedOneTo([1, 3]):
155155
1.0
156156
3.0
157157
4.0

src/abstractblockarray.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ The actual bounds-checking is performed by [`blockcheckindex`](@ref).
118118
julia> B = BlockArray(zeros(6,6), 1:3, 1:3);
119119
120120
julia> blockaxes(B)
121-
(BlockRange(Base.OneTo(3)), BlockRange(Base.OneTo(3)))
121+
(BlockRange((3,)), BlockRange((3,)))
122122
123123
julia> BlockArrays.blockcheckbounds_indices(Bool, blockaxes(B), (1,2))
124124
true

0 commit comments

Comments
 (0)