Skip to main content

update_readme

Function update_readme 

Source
pub fn update_readme(
    project_root: &Path,
    settings: &ReadmeSettings,
    markdown: &str,
) -> Result<bool, ReadmeWriteError>
Expand description

Updates the managed README section and reports whether the file changed.

ยงErrors

Returns an error if updates are disabled, the path or markers are invalid, or the file cannot be locked, read, or atomically replaced.