Skip to content

Commit

Permalink
Merge pull request #388 from DavidSouther/master
Browse files Browse the repository at this point in the history
Add documentation to File `required` setter.
  • Loading branch information
matthiasbeyer authored Nov 8, 2022
2 parents 03614aa + 1bf9b49 commit 7f0dbef
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 7f0dbef

Please sign in to comment.