Skip to content

Commit 1210bb4

Browse files
committed
octal_escapes: note on print!() format strings
1 parent 0bc25d0 commit 1210bb4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clippy_lints/src/octal_escapes.rs

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ declare_clippy_lint! {
2727
/// The actual meaning can be the intended one. `\x00` can be used in these
2828
/// cases to be unambigious.
2929
///
30+
/// The lint does not trigger for format strings in `print!()`, `write!()`
31+
/// and friends since the string is already preprocessed when Clippy lints
32+
/// can see it.
33+
///
3034
/// # Example
3135
/// ```rust
3236
/// // Bad

0 commit comments

Comments
 (0)