diff --git a/src/larray.jl b/src/larray.jl index 3416618..b3491ef 100644 --- a/src/larray.jl +++ b/src/larray.jl @@ -271,11 +271,11 @@ A = @LVector Float64 (:a, :b, :c, :d) A .= rand(4) ``` -On the other hand, users can also initialize the vector and set its values at the -same time: +To initialize the vector and set its values at the +same time, use [`@LArray`](@ref) instead: ```julia -b = @LVector [1, 2, 3] (:a, :b, :c) +b = @LArray [1, 2, 3] (:a, :b, :c) ``` """ macro LVector(type, syms) diff --git a/test/larrays.jl b/test/larrays.jl index 0d653e1..e8f594d 100644 --- a/test/larrays.jl +++ b/test/larrays.jl @@ -78,6 +78,9 @@ using LabelledArrays, Test, InteractiveUtils @test vcat(x, y) == [1, 2, 3, 4, 5, 6] @test_throws ErrorException x.z + + # Ref #93, #154 + @test_broken @LVector [1, 2, 3] (:a, :b, :c) end @testset "Alternate array backends" begin