Skip to content

Commit

Permalink
Merge pull request #154 from alecloudenback/patch-1
Browse files Browse the repository at this point in the history
Remove erroneous `LVector` docstring and point user to the alternative that works.
  • Loading branch information
ChrisRackauckas authored Feb 3, 2024
2 parents 2a2bc1e + 18ed11b commit 07989c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/larray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions test/larrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 07989c4

Please sign in to comment.