diff --git a/src/core/time.d b/src/core/time.d index db8c5ad3cb..6cd1c65e04 100644 --- a/src/core/time.d +++ b/src/core/time.d @@ -1105,7 +1105,8 @@ public: } /++ - Returns `true` if this duration is non-zero. + Allow Duration to be used as a boolean. + Returns: `true` if this duration is non-zero. +/ bool opCast(T : bool)() const nothrow @nogc {