Skip to content

Commit 07989c4

Browse files
Merge pull request #154 from alecloudenback/patch-1
Remove erroneous `LVector` docstring and point user to the alternative that works.
2 parents 2a2bc1e + 18ed11b commit 07989c4

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/larray.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,11 @@ A = @LVector Float64 (:a, :b, :c, :d)
271271
A .= rand(4)
272272
```
273273
274-
On the other hand, users can also initialize the vector and set its values at the
275-
same time:
274+
To initialize the vector and set its values at the
275+
same time, use [`@LArray`](@ref) instead:
276276
277277
```julia
278-
b = @LVector [1, 2, 3] (:a, :b, :c)
278+
b = @LArray [1, 2, 3] (:a, :b, :c)
279279
```
280280
"""
281281
macro LVector(type, syms)

test/larrays.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ using LabelledArrays, Test, InteractiveUtils
7878
@test vcat(x, y) == [1, 2, 3, 4, 5, 6]
7979

8080
@test_throws ErrorException x.z
81+
82+
# Ref #93, #154
83+
@test_broken @LVector [1, 2, 3] (:a, :b, :c)
8184
end
8285

8386
@testset "Alternate array backends" begin

0 commit comments

Comments
 (0)