From a2cbfec5977fd842f63a243f9f719000a9ffbc94 Mon Sep 17 00:00:00 2001 From: Magnusson Jan Olof Date: Wed, 22 Aug 2018 08:55:00 +0200 Subject: [PATCH 1/2] improve docstring of pathof --- base/loading.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base/loading.jl b/base/loading.jl index f55f75498d90e..679c0743bf607 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -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) From b6302815f99e2bdddf6e097e8d9601d089ff28dc Mon Sep 17 00:00:00 2001 From: Matt Bauman Date: Thu, 23 Aug 2018 13:06:35 -0500 Subject: [PATCH 2/2] Remove trailing whitespace --- base/loading.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/loading.jl b/base/loading.jl index 679c0743bf607..18a8765d68480 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -255,7 +255,7 @@ 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) +Use [`dirname`](@ref) to get the directory part and [`basename`](@ref) to get the file name part of the path. """ function pathof(m::Module)