Skip to content

docstring example for @LVector appears to be incorrect #93

@pcjentsch

Description

@pcjentsch

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions