Skip to content

Commit

Permalink
Updated docstring for Pkg.installed to make it clear that it will o…
Browse files Browse the repository at this point in the history
…nly return if the `pkg` is registered.
  • Loading branch information
Alexander Morley committed Dec 4, 2016
1 parent 8dd8ea9 commit 778b0e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion base/pkg/pkg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion doc/stdlib/pkg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 778b0e1

Please sign in to comment.