Skip to content

Commit 316f5da

Browse files
author
guoyongzhi
committed
fix String indices
1 parent 939e8e9 commit 316f5da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wc-helper.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ end
132132

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

0 commit comments

Comments
 (0)