Skip to content

Commit 68bae30

Browse files
MichaelHatherlytkelman
authored andcommitted
Fix doc bootstrap method error.
Docstrings defined before `==` is available for `Symbol` comparisons causes a build error. Fix by comparing with `===`. Ref: #13534 (comment) (cherry picked from commit d8b6a24) ref #13602
1 parent fbe97b1 commit 68bae30

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

base/docs/bootstrap.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ setexpand!(f) = global _expand_ = f
2121

2222
function __bootexpand(str, obj)
2323
global docs = List((ccall(:jl_get_current_module, Any, ()), str, obj), docs)
24-
(isa(obj, Expr) && obj.head == :call) && return nothing
25-
(isa(obj, Expr) && obj.head == :module) && return esc(Expr(:toplevel, obj))
24+
(isa(obj, Expr) && obj.head === :call) && return nothing
25+
(isa(obj, Expr) && obj.head === :module) && return esc(Expr(:toplevel, obj))
2626
esc(obj)
2727
end
2828

@@ -45,6 +45,11 @@ that were stored in `DocBootstrap.docs` are migrated to their correct modules us
4545
"""
4646
DocBootstrap
4747

48+
"""
49+
loaddocs()
50+
51+
Move all docstrings from `DocBootstrap.docs` to their module's `__META__` dict.
52+
"""
4853
function loaddocs()
4954
node = docs
5055
while node nothing

0 commit comments

Comments
 (0)