Skip to content

Commit

Permalink
names docstring: qualify non-exported cross-refs (#52745)
Browse files Browse the repository at this point in the history
It seems like cross-references to non-exported symbols, like `ispublic`,
should be qualified — otherwise it is confusing since looking them up
fails.

Co-authored-by: Max Horn <[email protected]>
  • Loading branch information
stevengj and fingolfin committed Feb 10, 2024
1 parent 35768c2 commit 65ffa79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/reflection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ since it is not idiomatic to explicitly mark names from `Main` as public.
`names` will return symbols marked with `public` or `export`, even if
they are not defined in the module.
See also: [`isexported`](@ref), [`ispublic`](@ref), [`@locals`](@ref Base.@locals), [`@__MODULE__`](@ref).
See also: [`Base.isexported`](@ref), [`Base.ispublic`](@ref), [`Base.@locals`](@ref), [`@__MODULE__`](@ref).
"""
names(m::Module; all::Bool = false, imported::Bool = false) =
sort!(unsorted_names(m; all, imported))
Expand Down

0 comments on commit 65ffa79

Please sign in to comment.