Skip to content

Commit

Permalink
Add documentation to required setter.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSouther committed Nov 7, 2022
1 parent 03614aa commit 1bf9b49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/file/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ where
self
}

/// Set required to false to make a file optional when building the config.
pub fn required(mut self, required: bool) -> Self {
self.required = required;
self
Expand Down

0 comments on commit 1bf9b49

Please sign in to comment.