document std.conv.octal(T)(const(char)[]) precondition

This commit is contained in:
Liam McSherry 2015-06-01 17:51:39 +01:00
parent dccd13cd6c
commit a73480eae4

View file

@ -3740,7 +3740,14 @@ unittest
return octal!T(num); return octal!T(num);
} }
/// Ditto /// Takes an octal literal string and returns its value as the specified type.
///
/// Params:
/// num = The octal literal string.
///
/// Preconditions:
/// Asserts that $(D num) is an octal literal string using
/// $(D isOctalLiteralString).
@property T octal(T)(const(char)[] num) pure nothrow @property T octal(T)(const(char)[] num) pure nothrow
if (isNumeric!T) if (isNumeric!T)
{ {