fix example
This commit is contained in:
parent
bd29f67142
commit
ca55bff79d
1 changed files with 2 additions and 2 deletions
|
@ -24,13 +24,13 @@ use git_config::file::GitConfig;
|
||||||
use git_config::values::Boolean;
|
use git_config::values::Boolean;
|
||||||
use std::fs::read_to_string;
|
use std::fs::read_to_string;
|
||||||
|
|
||||||
let input = read_to_string(r#"
|
let input = r#"
|
||||||
[core]
|
[core]
|
||||||
some-bool = true
|
some-bool = true
|
||||||
|
|
||||||
[other "internal"]
|
[other "internal"]
|
||||||
hello = world
|
hello = world
|
||||||
"#)?;
|
"#;
|
||||||
let mut config = GitConfig::from(input)?;
|
let mut config = GitConfig::from(input)?;
|
||||||
let boolean = config.get_config::<Boolean>("core", None, "some-bool");
|
let boolean = config.get_config::<Boolean>("core", None, "some-bool");
|
||||||
config.set_value("other", Some("internal"), "hello", "clippy!");
|
config.set_value("other", Some("internal"), "hello", "clippy!");
|
||||||
|
|
Reference in a new issue