Skip to content

Commit 9a7367b

Browse files
committed
Mention debug_assert! in assert! doc
1 parent 8760b1d commit 9a7367b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libcore/macros.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ macro_rules! panic {
3636
/// evaluated to `true` at runtime.
3737
///
3838
/// Assertions are always checked in both debug and release builds, and cannot
39-
/// be disabled.
39+
/// be disabled. See `debug_assert!` for assertions that are not enabled in
40+
/// release builds by default.
4041
///
4142
/// Unsafe code relies on `assert!` to enforce run-time invariants that, if
4243
/// violated could lead to unsafety.

0 commit comments

Comments
 (0)