Skip to main content

replace_first

Function replace_first 

Source
pub fn replace_first(s: &str, from: &str, to: &str) -> String
Expand description

Replace the first occurrence of from in s with to.