Skip to content

Commit 8b3ffd8

Browse files
authored
cross-reference pathof and pkgdir in docstrings (#51298)
I added cross-references in the docstrings of the related functions `pathof` and `pkgdir`. In my case, I remembered `pathof` but wanted to use `pkgdir`, which I couldn't find easily from the REPL help mode.
1 parent ce5fa71 commit 8b3ffd8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

base/loading.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,8 @@ or `nothing` if `m` was not imported from a package.
475475
476476
Use [`dirname`](@ref) to get the directory part and [`basename`](@ref)
477477
to get the file name part of the path.
478+
479+
See also [`pkgdir`](@ref).
478480
"""
479481
function pathof(m::Module)
480482
@lock require_lock begin
@@ -507,6 +509,8 @@ julia> pkgdir(Foo, "src", "file.jl")
507509
"/path/to/Foo.jl/src/file.jl"
508510
```
509511
512+
See also [`pathof`](@ref).
513+
510514
!!! compat "Julia 1.7"
511515
The optional argument `paths` requires at least Julia 1.7.
512516
"""

0 commit comments

Comments
 (0)