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

(cherry picked from commit 304cbd9)
  • Loading branch information
Jan Magnusson authored and KristofferC committed Feb 11, 2019
1 parent 1cf8330 commit ffd4568
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 ffd4568

Please sign in to comment.