octal_escapes: note on print!() format strings

This commit is contained in:
Georg Brandl 2021-11-22 21:02:03 +01:00
parent 0bc25d04c6
commit 1210bb40d3

@ -27,6 +27,10 @@ declare_clippy_lint! {
/// The actual meaning can be the intended one. `\x00` can be used in these
/// cases to be unambigious.
///
/// The lint does not trigger for format strings in `print!()`, `write!()`
/// and friends since the string is already preprocessed when Clippy lints
/// can see it.
///
/// # Example
/// ```rust
/// // Bad