File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ macro_rules! panic {
34
34
/// This will invoke the `panic!` macro if the provided expression cannot be
35
35
/// evaluated to `true` at runtime.
36
36
///
37
+ /// This macro has a second version, where a custom panic message can be provided.
38
+ ///
37
39
/// # Examples
38
40
///
39
41
/// ```
@@ -99,6 +101,9 @@ macro_rules! assert_eq {
99
101
/// This will invoke the `panic!` macro if the provided expression cannot be
100
102
/// evaluated to `true` at runtime.
101
103
///
104
+ /// Like `assert!`, this macro also has a second version, where a custom panic
105
+ /// message can be provided.
106
+ ///
102
107
/// Unlike `assert!`, `debug_assert!` statements are only enabled in non
103
108
/// optimized builds by default. An optimized build will omit all
104
109
/// `debug_assert!` statements unless `-C debug-assertions` is passed to the
You can’t perform that action at this time.
0 commit comments