Skip to content

Commit

Permalink
docs: update to match ident field
Browse files Browse the repository at this point in the history
  • Loading branch information
ifiokjr committed Aug 22, 2024
1 parent 6f82e91 commit 51e1022
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]

### Added
- Add `#[builder(setter(strip_option(fallback = "field_opt")))]` to add a fallback unstripped method to the builder struct.
- Add `#[builder(setter(strip_option(fallback = field_opt)))]` to add a fallback unstripped method to the builder struct.

## 0.19.1 - 2024-07-14
### Fixed
Expand Down
5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,9 @@ use core::ops::FnOnce;
/// one cannot set the field to `None` with the setter - so the only way to get it to be `None`
/// is by using `#[builder(default)]` and not calling the field's setter.
///
/// - `strip_option(fallback = "field_opt")`: for `Option<...>` fields only. As above this
/// - `strip_option(fallback = field_opt)`: for `Option<...>` fields only. As above this
/// still wraps the argument with `Some(...)`. The name given to the fallback method adds
/// another method to the builder without wrapping the argument in `Some`. This is useful
/// when the codebase sometimes needs to pass in optional values. You can now call with
/// another method to the builder without wrapping the argument in `Some`. You can now call
/// `field_opt(Some(...))` instead of `field(...)`.
///
/// - `strip_bool`: for `bool` fields only, this makes the setter receive no arguments and simply
Expand Down

0 comments on commit 51e1022

Please sign in to comment.