]> git.lizzy.rs Git - rust.git/commitdiff
Update README.md
authorManish Goregaokar <manishsmail@gmail.com>
Mon, 18 May 2015 10:32:25 +0000 (16:02 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Mon, 18 May 2015 10:32:25 +0000 (16:02 +0530)
README.md

index 48289f04216f8d864af78d929932e9129e7409f8..633b2ed08c44f56cacb189cb1cb3b912a0da754f 100644 (file)
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ Sample `main.rs`:
 #![feature(plugin)]
 
 #![plugin(clippy)]
-// OPTIONS GO HERE
+
 
 fn main(){
     let x = Some(1u8);
@@ -70,9 +70,10 @@ src/main.rs:10         _ => ()
 src/main.rs:11     }
 ```
 
-You can add `OPTIONS` to `allow`/`warn`/`deny`:
-- the whole set using the `clippy` lint group (`#[deny(clippy)]`, etc)
-- only some lints (`#[deny(single_match, box_vec)]`, etc)
+You can add options  to `allow`/`warn`/`deny`:
+- the whole set using the `clippy` lint group (`#![deny(clippy)]`, etc)
+- only some lints (`#![deny(single_match, box_vec)]`, etc)
+- `allow`/`warn`/`deny` can be limited to a single function or module using `#[allow(...)]`, etc
 
 *`deny` produces error instead of warnings*