Skip to content

Commit

Permalink
Fix doc bootstrap method error.
Browse files Browse the repository at this point in the history
Docstrings defined before `==` is available for `Symbol` comparisions
causes a build error. Fix by comparing with `===`.

Ref: JuliaLang#13534 (comment)
  • Loading branch information
MichaelHatherly committed Oct 14, 2015
1 parent 03f28fd commit eb033ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/docs/bootstrap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ setexpand!(f) = global _expand_ = f

function __bootexpand(str, obj)
global docs = List((ccall(:jl_get_current_module, Any, ()), str, obj), docs)
(isa(obj, Expr) && obj.head == :call) && return nothing
(isa(obj, Expr) && obj.head == :module) && return esc(Expr(:toplevel, obj))
(isa(obj, Expr) && obj.head === :call) && return nothing
(isa(obj, Expr) && obj.head === :module) && return esc(Expr(:toplevel, obj))
esc(obj)
end

Expand Down

0 comments on commit eb033ba

Please sign in to comment.