Fixed: dmd die of the generation of the document.

This commit is contained in:
SHOO 2010-08-22 15:21:51 +00:00
parent 08af0f5500
commit cf4ff42933

View file

@ -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)
{