mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +03:00
Expose the enfore overload on the docs
This commit is contained in:
parent
30d0617963
commit
594c5b045e
1 changed files with 1 additions and 1 deletions
|
@ -388,7 +388,7 @@ void assertThrown(T : Throwable = Exception, E)
|
|||
template enforce(E : Throwable = Exception)
|
||||
if (is(typeof(new E("", __FILE__, __LINE__)) : Throwable) || is(typeof(new E(__FILE__, __LINE__)) : Throwable))
|
||||
{
|
||||
|
||||
///
|
||||
T enforce(T)(T value, lazy const(char)[] msg = null,
|
||||
string file = __FILE__, size_t line = __LINE__)
|
||||
if (is(typeof({ if (!value) {} })))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue