From cf4ff42933fe1c17677030c858d7802783e11a93 Mon Sep 17 00:00:00 2001 From: SHOO Date: Sun, 22 Aug 2010 15:21:51 +0000 Subject: [PATCH] Fixed: dmd die of the generation of the document. --- std/stopwatch.d | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/std/stopwatch.d b/std/stopwatch.d index a35e9dd77..d3e7f95e0 100644 --- a/std/stopwatch.d +++ b/std/stopwatch.d @@ -841,24 +841,24 @@ unittest } -/******************************************************************************* - * Scope base measuring time. - * - * When a value that is returned by this function is destroyed, FN will run. - * FN is unaly function that requires Ticks. - * - * Excample: - *------------------------------------------------------------------------------ - *writeln("benchmark start!"); - *{ - * auto mt = measureTime!((a){assert(a.seconds);}); - * doSomething(); - *} - *writeln("benchmark end!"); - *------------------------------------------------------------------------------ - */ @safe { + /*************************************************************************** + * Scope base measuring time. + * + * When a value that is returned by this function is destroyed, FN will run. + * FN is unaly function that requires Ticks. + * + * Excample: + *-------------------------------------------------------------------------- + *writeln("benchmark start!"); + *{ + * auto mt = measureTime!((a){assert(a.seconds);}); + * doSomething(); + *} + *writeln("benchmark end!"); + *-------------------------------------------------------------------------- + */ auto measureTime(alias func)() if (isSafe!func) {