Skip to content

Commit aed55dc

Browse files
committed
Auto merge of #27763 - wthrowe:debug-docs, r=alexcrichton
When --cfg ndebug changed to -C debug-assertions the documentation was updated to reflect the new name, but not that the meaning was reversed.
2 parents 021389f + 43f6c2f commit aed55dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/liblog/macros.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ macro_rules! info {
135135
($($arg:tt)*) => (log!(::log::INFO, $($arg)*))
136136
}
137137

138-
/// A convenience macro for logging at the debug log level. This macro can also
139-
/// be omitted at compile time by passing `-C debug-assertions` to the compiler. If
140-
/// this option is not passed, then debug statements will be compiled.
138+
/// A convenience macro for logging at the debug log level. This macro will
139+
/// be omitted at compile time in an optimized build unless `-C debug-assertions`
140+
/// is passed to the compiler.
141141
///
142142
/// # Examples
143143
///

0 commit comments

Comments
 (0)