mirror of
https://github.com/dlang/phobos.git
synced 2025-05-06 19:16:13 +03:00
document std.conv.octal(T)(const(char)[]) precondition
This commit is contained in:
parent
dccd13cd6c
commit
a73480eae4
1 changed files with 8 additions and 1 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue