Skip to content

Commit

Permalink
core: Improve the documentation in core.rt.format on Sink and SinkArg.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhelyer committed May 27, 2018
1 parent bc67795 commit 22669ec
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions rt/src/core/rt/format.volt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@
module core.rt.format;


/// The one true sink definition.
/*!
* The argument that is passed to Sinks.
*/
alias SinkArg = scope const(char)[];

/// The argument to the one true sink.
/*!
* The Sink delegate.
*
* A Sink is a delegate that takes a `SinkArg`,
* and builds a string, usually with an aim
* to minimise needless allocations and GC calls.
*/
alias Sink = scope dg (SinkArg);

/*!
Expand Down

0 comments on commit 22669ec

Please sign in to comment.