Skip to content

Commit

Permalink
improve docstring of pathof (#28817)
Browse files Browse the repository at this point in the history
* improve docstring of pathof
  • Loading branch information
Jan Magnusson authored and KristofferC committed Aug 26, 2018
1 parent b18f589 commit 304cbd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ locate_package(::Nothing) = nothing
Return the path of `m.jl` file that was used to `import` module `m`,
or `nothing` if `m` was not imported from a package.
Use [`dirname`](@ref) to get the directory part and [`basename`](@ref)
to get the file name part of the path.
"""
function pathof(m::Module)
pkgid = get(Base.module_keys, m, nothing)
Expand Down

0 comments on commit 304cbd9

Please sign in to comment.