Skip to content

Commit

Permalink
Fixes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed May 18, 2020
1 parent 017755c commit 770c306
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion base/abstractdict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ convert(::Type{T}, x::T) where {T<:AbstractDict} = x

function convert(::Type{T}, x::AbstractDict) where T<:AbstractDict
h = T(x)
if length(h)::Int != length(x)::Int
if length(h) != length(x)
error("key collision during dictionary conversion")
end
return h
Expand Down
6 changes: 3 additions & 3 deletions stdlib/REPL/src/docview.jl
Original file line number Diff line number Diff line change
Expand Up @@ -607,9 +607,9 @@ moduleusings(mod) = ccall(:jl_module_usings, Any, (Any,), mod)
filtervalid(names) = filter(x->!occursin(r"#", x), map(string, names))

accessible(mod::Module) =
[filter!(s -> !Base.isdeprecated(mod, s), names(mod, all = true, imported = true));
map(names, moduleusings(mod))...;
collect(keys(Base.Docs.keywords))]::Vector{Symbol} |> unique |> filtervalid
Symbol[filter!(s -> !Base.isdeprecated(mod, s), names(mod, all=true, imported=true));
map(names, moduleusings(mod))...;
collect(keys(Base.Docs.keywords))] |> unique |> filtervalid

doc_completions(name) = fuzzysort(name, accessible(Main))
doc_completions(name::Symbol) = doc_completions(string(name))
Expand Down

0 comments on commit 770c306

Please sign in to comment.