Merge pull request #93 from kellerkindt/patch-1

Show call of default()
pull/94/head
Chris Wong 4 years ago committed by GitHub
commit 5f1d9962c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -36,6 +36,12 @@ struct MyConfiguration {
impl MyConfiguration {
// add setters here
}
fn main() {
// construct a new instance with default values
let mut conf = MyConfiguration::default();
// do somthing with conf here
}
```
## See also

Loading…
Cancel
Save