Skip to content

Commit

Permalink
fix String indices
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyongzhi committed Feb 5, 2021
1 parent 939e8e9 commit 316f5da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wc-helper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ end

runexample(example=:alice) = evalfile(pkgdir(WordCloud)*"/examples/$(example).jl")
showexample(example=:alice) = read(pkgdir(WordCloud)*"/examples/$(example).jl", String)|>print
examples = [e[1:end-3] for e in basename.(readdir(pkgdir(WordCloud)*"/examples")) if endswith(e, ".jl")]
examples = [e[1:prevind(e, end, 3)] for e in basename.(readdir(pkgdir(WordCloud)*"/examples")) if endswith(e, ".jl")]
@doc "Available values: [" * join(":".*examples, ", ") * "]" runexample
@doc "Available values: [" * join(":".*examples, ", ") * "]" showexample
function runallexamples()
Expand Down

0 comments on commit 316f5da

Please sign in to comment.