Skip to content

Commit

Permalink
small fixes in README
Browse files Browse the repository at this point in the history
  • Loading branch information
nrxus committed Feb 23, 2022
1 parent 43027e4 commit 96ad4c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ faux = "^0.1"
```
`faux` provides two attributes:
* `#[create]`: transforms a struct into a mockable equivalent
* `#[methods]`: transforms the methods in an `impl` block into
* `#[methods]`: transforms the methods in an `impl` block into their
mockable equivalent

Use Rust's `#[cfg_attr(...)]` to gate these attributes to the test
config only.
Expand Down Expand Up @@ -48,7 +49,7 @@ mod client {
pub name: String
}

// #[faux::methods ] makes every public method in the `impl` block mockable
// #[faux::methods] makes every public method in the `impl` block mockable
#[faux::methods]
impl UserClient {
pub fn fetch(&self, id: usize) -> User {
Expand Down

0 comments on commit 96ad4c6

Please sign in to comment.