book: Fix example code

Fix example code of the "Disabling evaluation of certain code" section
in the configuration chapter.
This commit is contained in:
finga 2024-05-25 21:36:49 +02:00
parent 5aae5f6ae6
commit e61288cbf0

View File

@ -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: `clippy` cfg is not set. You may need to provide a stub so that the code compiles:
```rust ```rust
#[cfg(not(clippy)] #[cfg(not(clippy))]
include!(concat!(env!("OUT_DIR"), "/my_big_function-generated.rs")); include!(concat!(env!("OUT_DIR"), "/my_big_function-generated.rs"));
#[cfg(clippy)] #[cfg(clippy)]