Skip to content

Commit 51a6408

Browse files
innerleeStefanKarpinski
authored andcommitted
Make argument in download to AbstractString (#34140)
from `download_url(url::String)` to `download_url(url::AbstractString)` fixes `ERROR: MethodError: no method matching download_url(::SubString{String})`
1 parent 242ef64 commit 51a6408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/download.jl

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

4949
const DOWNLOAD_HOOKS = Callable[]
5050

51-
function download_url(url::String)
51+
function download_url(url::AbstractString)
5252
for hook in DOWNLOAD_HOOKS
5353
url = String(hook(url)::AbstractString)
5454
end

0 commit comments

Comments
 (0)