Skip to content

Commit

Permalink
Merge pull request JuliaLang#19435 from alexmorley/patch-1
Browse files Browse the repository at this point in the history
Add detail to installed(pkg) doc
  • Loading branch information
martinholters committed Dec 6, 2016
2 parents d2c1c7d + 778b0e1 commit dedd3cd
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 dedd3cd

Please sign in to comment.