Skip to content

Commit 8760b1d

Browse files
committed
Revert section about panic! in assert! doc
1 parent 91acc39 commit 8760b1d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/libcore/macros.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ macro_rules! panic {
3232

3333
/// Ensure that a boolean expression is `true` at runtime.
3434
///
35-
/// This will ensure the termination of the program if the provided expression
36-
/// cannot be evaluated to `true` at runtime by means of an unrecoverable error
37-
/// (not necessarily a `panic!`, can also be an `abort`).
35+
/// This will invoke the `panic!` macro if the provided expression cannot be
36+
/// evaluated to `true` at runtime.
3837
///
3938
/// Assertions are always checked in both debug and release builds, and cannot
4039
/// be disabled.

0 commit comments

Comments
 (0)