Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ use struct_patch::Filler;
struct Item {
field_int: usize,
maybe_field_int: Option<usize>,
list: Vec<uszie>,
list: Vec<usize>,
}
let mut item = Item {
field_int: 0,
Expand All @@ -97,7 +97,7 @@ let filler_3 = ItemFiller{ maybe_field_int: Some(100), list: vec![7] };
item.apply(filler_3);
assert_eq!(item.maybe_field_int, Some(7));
assert_eq!(item.list, vec![7]);
```
```

## Documentation and Examples
Also, you can modify the patch structure by defining `#[patch(...)]` attributes on the original struct or fields.
Expand Down