Lazy.jl icon indicating copy to clipboard operation
Lazy.jl copied to clipboard

@switch README example error

Open joshualeond opened this issue 7 years ago • 0 comments

Hey, thanks for your work here. I was testing out the switch macro example and ran into an error:

using Lazy

x = 1

@switch x begin
  1; "x equals one!"
  2; "x equals two!"
  "x equals something else!"
end

Which results in the error:

ERROR: cannot document the following expression:

2

Stacktrace:
 [1] error(::String, ::String, ::Vararg{String,N} where N) at ./error.jl:30

Any advice would be appreciated. Thanks.

joshualeond avatar Dec 18 '17 05:12 joshualeond