mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 06:28:42 +00:00
Auto merge of #12852 - finga:master, r=flip1995
book: Fix example code Fix example code of the "Disabling evaluation of certain code" section in the configuration chapter. changelog: none
This commit is contained in:
commit
20f0f135ee
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ Very rarely, you may wish to prevent Clippy from evaluating certain sections of
|
|||
`clippy` cfg is not set. You may need to provide a stub so that the code compiles:
|
||||
|
||||
```rust
|
||||
#[cfg(not(clippy)]
|
||||
#[cfg(not(clippy))]
|
||||
include!(concat!(env!("OUT_DIR"), "/my_big_function-generated.rs"));
|
||||
|
||||
#[cfg(clippy)]
|
||||
|
|
Loading…
Add table
Reference in a new issue