[−][src]Function metasophiea_minigrep::search_case_insensitive
pub fn search_case_insensitive<'a>(
query: &str,
contents: &'a str
) -> Vec<&'a str>
This function searches for a string in a given string, without regard to the case of either
Examples
let query = "duct"; let contents = "\ Rust: safe, fast, productive. Pick three. Duct tape."; assert_eq!(vec!["safe, fast, productive."], search(query,contents));