Skip to main content

append_body

Function append_body 

Source
pub fn append_body(layout: &Layout, id: &str, text: &str) -> Result<String>
Expand description

Append prose to an issue’s body, stamped with the date and identity. Lines that would end the issue are indented, so markdown is safe to append.

§Errors

Returns an error if text is empty, id is not in the corpus, or the file cannot be rewritten.