From a73480eae449b27774f250c7b10c137e3deb3ded Mon Sep 17 00:00:00 2001 From: Liam McSherry Date: Mon, 1 Jun 2015 17:51:39 +0100 Subject: [PATCH] document std.conv.octal(T)(const(char)[]) precondition --- std/conv.d | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/std/conv.d b/std/conv.d index 6b3975755..2efcecec2 100644 --- a/std/conv.d +++ b/std/conv.d @@ -3740,7 +3740,14 @@ unittest 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 if (isNumeric!T) {