Skip to content

Commit 408733c

Browse files
authored
Removed misleading "Use assert in contracts."
See https://forum.dlang.org/thread/[email protected]
1 parent d2a8319 commit 408733c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/exception.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ void assertThrown(T : Throwable = Exception, E)
372372
of your program. That is what $(D assert) is for. Also, do not use
373373
$(D enforce) inside of contracts (i.e. inside of $(D in) and $(D out)
374374
blocks and $(D invariant)s), because contracts are compiled out when
375-
compiling with $(I -release). Use $(D assert) in contracts.
375+
compiling with $(I -release).
376376
377377
Example:
378378
--------------------

0 commit comments

Comments
 (0)