Skip to content

Commit 6027248

Browse files
committed
Merge pull request #212 from stevenschmatz/patch-1
Fix typos/formatting in TextFormatting.rst
2 parents 3bc1bd9 + daf3080 commit 6027248

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/TextFormatting.rst

+3-4
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ Debug Printing
129129

130130
Via compiler magic, *everything* conforms to the ``CustomDebugStringConvertible``
131131
protocol. To change the debug representation for a type, you don't
132-
need to declare conformance: simply give the type a ``debugFormat()``
133-
::
132+
need to declare conformance: simply give the type a ``debugFormat()``::
134133

135134
/// \brief A thing that can be printed in the REPL and the Debugger
136135
protocol CustomDebugStringConvertible {
@@ -199,7 +198,7 @@ Because it's not always efficient to construct a ``String``
199198
representation before writing an object to a stream, we provide a
200199
``Streamable`` protocol, for types that can write themselves into an
201200
``OutputStream``. Every ``Streamable`` is also a ``CustomStringConvertible``,
202-
naturally ::
201+
naturally::
203202

204203
protocol Streamable : CustomStringConvertible {
205204
func writeTo<T: OutputStream>(target: [inout] T)
@@ -426,7 +425,7 @@ would also make ``OutputStream`` adapters a *bit* simpler to use
426425
because you'd never need to “write back” explicitly onto the target
427426
stream. However, stateful ``OutputStream`` adapters would still need a
428427
``close()`` method, which makes a perfect place to return a copy of
429-
the underlying stream, which can then be “written back.” :
428+
the underlying stream, which can then be “written back:
430429

431430
.. parsed-literal::
432431

0 commit comments

Comments
 (0)