Skip to content

Commit

Permalink
Merge pull request #15633 from MichaelHatherly/mh/fix-docs
Browse files Browse the repository at this point in the history
Minor docs fixes.
  • Loading branch information
MichaelHatherly committed Mar 28, 2016
2 parents 336e24a + afb09a8 commit 9d527c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/genstdlib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function getdoc(state::State, file::AbstractString, input::Vector)
# Capture the lines containing the docstring signature.
output = []
while !isempty(input)
line = shift!(input)
line = rstrip(shift!(input))
push!(output, line)
ismatch(r"^$", line) && break
end
Expand Down
12 changes: 8 additions & 4 deletions doc/manual/documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -335,15 +335,19 @@ Types
.. code-block:: julia
"..."
abstract T
abstract T1
"..."
type T end
type T2
...
end
"..."
immutable T end
immutable T3
...
end
Adds the docstring ``"..."`` to type ``T``.
Adds the docstring ``"..."`` to types ``T1``, ``T2``, and ``T3``.

.. code-block:: julia
Expand Down

0 comments on commit 9d527c5

Please sign in to comment.