]> git.lizzy.rs Git - rust.git/commitdiff
Revert section about panic! in assert! doc
authorPanashe M. Fundira <fundirap@gmail.com>
Wed, 27 Jul 2016 19:03:23 +0000 (15:03 -0400)
committerPanashe M. Fundira <fundirap@gmail.com>
Wed, 27 Jul 2016 19:03:23 +0000 (15:03 -0400)
src/libcore/macros.rs

index c8606b0f16361b786d26385644720d4e0a33d838..260d974e45d6c26d2e43f359844b40753e987a4c 100644 (file)
@@ -32,9 +32,8 @@ macro_rules! panic {
 
 /// Ensure that a boolean expression is `true` at runtime.
 ///
-/// This will ensure the termination of the program if the provided expression
-/// cannot be evaluated to `true` at runtime by means of an unrecoverable error
-/// (not necessarily a `panic!`, can also be an `abort`).
+/// This will invoke the `panic!` macro if the provided expression cannot be
+/// evaluated to `true` at runtime.
 ///
 /// Assertions are always checked in both debug and release builds, and cannot
 /// be disabled.