Skip to content

Commit 4ef52f5

Browse files
authored
Clarify docstring for pkgversion (#59646)
1 parent 23cfff2 commit 4ef52f5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

base/loading.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -593,9 +593,8 @@ end
593593
"""
594594
pkgversion(m::Module)
595595
596-
Return the version of the package that imported module `m`,
597-
or `nothing` if `m` was not imported from a package, or imported
598-
from a package without a version field set.
596+
If the module `m` belongs to a versioned package, return the
597+
version number of that package. Otherwise return `nothing`.
599598
600599
The version is read from the package's Project.toml during package
601600
load.

0 commit comments

Comments
 (0)