Mention debug_assert! in assert! doc
This commit is contained in:
parent
8760b1dd26
commit
9a7367b960
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@ macro_rules! panic {
|
|||
/// evaluated to `true` at runtime.
|
||||
///
|
||||
/// Assertions are always checked in both debug and release builds, and cannot
|
||||
/// be disabled.
|
||||
/// be disabled. See `debug_assert!` for assertions that are not enabled in
|
||||
/// release builds by default.
|
||||
///
|
||||
/// Unsafe code relies on `assert!` to enforce run-time invariants that, if
|
||||
/// violated could lead to unsafety.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue