Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove erroneous LVector docstring and point user to the alternative that works. #154

Merged
merged 3 commits into from
Feb 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading