Skip to content

Commit 9c7acd0

Browse files
committed
mention skip_if in readme
1 parent 01053db commit 9c7acd0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ Here is a showcase of all possible field attributes:
1616
x: i32,
1717
#[debug(skip)]
1818
y: i32,
19-
#[debug(with = "hex_fmt")]
19+
#[debug(with = hex_fmt)]
2020
z: i32,
21+
#[debug(skip_if = Option::is_none)]
22+
label: Option<String>,
2123
}
2224

2325
fn hex_fmt<T: fmt::Debug>(n: &T, f: &mut fmt::Formatter) -> fmt::Result {
@@ -32,4 +34,4 @@ Foo {
3234
x: 42 things,
3335
z: 0xAB
3436
}
35-
```
37+
```

0 commit comments

Comments
 (0)