Function todo_lib::todotxt::replace_word[][src]

pub fn replace_word(s: &mut String, old: &str, new: &str)
Expand description

Replaces a word with another one. If new is empty, it removed the old value. A word is a group of characters between spaces(start and end of the string are virtual spaces).