Skip to content

Commit 5d17880

Browse files
committed
dbg macro: Discuss use in tests, and slightly clarify
Signed-off-by: Ian Jackson <[email protected]>
1 parent 578e8a8 commit 5d17880

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

std/src/macros.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,10 @@ macro_rules! eprintln {
185185
/// builds or when debugging in release mode is significantly faster.
186186
///
187187
/// Note that the macro is intended as a debugging tool and therefore you
188-
/// should avoid having uses of it in version control for long periods.
189-
/// Use cases involving debug output that should be added to version control
190-
/// are better served by macros such as [`debug!`] from the [`log`] crate.
188+
/// should avoid having uses of it in version control for long periods
189+
/// (other than in tests etc.)
190+
/// Debug output from production code is better done with other facilities
191+
/// such as the [`debug!`] macro from the [`log`] crate.
191192
///
192193
/// # Stability
193194
///

0 commit comments

Comments
 (0)