Mention debug_assert! in assert! doc

This commit is contained in:
Panashe M. Fundira 2016-07-27 15:16:11 -04:00
parent 8760b1dd26
commit 9a7367b960
No known key found for this signature in database
GPG Key ID: ABD6E90F51BF74B5

View File

@ -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.