diff options
| author | Panashe M. Fundira <fundirap@gmail.com> | 2016-07-27 15:16:11 -0400 |
|---|---|---|
| committer | Panashe M. Fundira <fundirap@gmail.com> | 2016-07-27 15:16:11 -0400 |
| commit | 9a7367b96035ab1ff7593f929c852181de1bcbfb (patch) | |
| tree | 5513c60111ec699327165114eaec1f7f44ce7eb1 /src/libcore | |
| parent | 8760b1dd264bfd4f00a772e3229d02b9bb0e25f4 (diff) | |
| download | rust-9a7367b96035ab1ff7593f929c852181de1bcbfb.tar.gz rust-9a7367b96035ab1ff7593f929c852181de1bcbfb.zip | |
Mention debug_assert! in assert! doc
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/macros.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcore/macros.rs b/src/libcore/macros.rs index 260d974e45d..b0c79a3a885 100644 --- a/src/libcore/macros.rs +++ b/src/libcore/macros.rs @@ -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. |
