Skip to main content

update

Function update 

Source
pub fn update<F>(path: impl AsRef<Path>, edit: F) -> Result<()>
where F: FnOnce(&mut Map<String, Value>),
Expand description

Update a settings object and commit it atomically.