Skip to main content

replace_module_token

Function replace_module_token 

Source
pub fn replace_module_token(line: &str, from: &str, to: &str) -> (String, bool)
Expand description

Replace standalone from module token occurrences in line with to.

Returns (rewritten_line, changed).