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

docstring example for @LVector appears to be incorrect #93

Closed
pcjentsch opened this issue Apr 10, 2021 · 1 comment · Fixed by #154
Closed

docstring example for @LVector appears to be incorrect #93

pcjentsch opened this issue Apr 10, 2021 · 1 comment · Fixed by #154

Comments

@pcjentsch
Copy link

The example given in the docstring does not seem to work.

help?> @LVector
  @LVector Type Names


  Creates an LArray of dimension 1 with eltype and undefined values. Length is via
  the number of names given.

  For example:

  b = @LVector [1,2,3] (:a,:b,:c)


julia> b = @LVector [1,2,3] (:a,:b,:c)
ERROR: TypeError: in Type, in parameter, expected Type, got a value of type Vector{Int64}
Stacktrace:
 [1] top-level scope
   @ ~/.julia/packages/LabelledArrays/ti1TC/src/larray.jl:177

@ChrisRackauckas
Copy link
Member

Yes it needs an update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants