diff --git a/base/pkg/pkg.jl b/base/pkg/pkg.jl index 828a7d9bef50e..b359d6f45d958 100644 --- a/base/pkg/pkg.jl +++ b/base/pkg/pkg.jl @@ -124,7 +124,8 @@ installed() = cd(Entry.installed) """ installed(pkg) -> Void | VersionNumber -If `pkg` is installed, return the installed version number, otherwise return `nothing`. +If `pkg` is installed, return the installed version number. If `pkg` is registered, +but not installed, return `nothing`. """ installed(pkg::AbstractString) = cd(Entry.installed,pkg) diff --git a/doc/stdlib/pkg.rst b/doc/stdlib/pkg.rst index 348505145fbb7..f947a248793cd 100644 --- a/doc/stdlib/pkg.rst +++ b/doc/stdlib/pkg.rst @@ -91,7 +91,7 @@ Functions for package development (e.g. ``tag``, ``publish``, etc.) have been mo .. Docstring generated from Julia source - If ``pkg`` is installed, return the installed version number, otherwise return ``nothing``\ . + If ``pkg`` is installed, return the installed version number. If ``pkg`` is registered, but not installed, return ``nothing``\ . .. function:: status()