Skip to content

Commit

Permalink
Fix docs for encode overload
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrel committed Dec 30, 2014
1 parent 4b84951 commit ebc3d2e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions std/encoding.d
Expand Up @@ -1741,7 +1741,6 @@ body
Encodes $(D c) in units of type $(D E) and writes the result to the
output range $(D R). Returns the number of $(D E)s written.
*/

size_t encode(E, R)(dchar c, auto ref R range)
if (isNativeOutputRange!(R, E))
{
Expand Down Expand Up @@ -1842,8 +1841,14 @@ body
}

/**
Encodes $(D c) in units of type $(D E) and writes the result to the
output range $(D R). Returns the number of $(D E)s written.
Encodes the contents of $(D s) in units of type $(D Tgt), writing the result to an
output range.
Returns: The number of $(D Tgt) elements written.
Params:
Tgt = Element type of $(D range).
s = Input array.
range = Output range.
*/
size_t encode(Tgt, Src, R)(in Src[] s, R range)
{
Expand Down

0 comments on commit ebc3d2e

Please sign in to comment.