[−][src]Function eye_minigrep::search
pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str>
Search a str slice in which line of another str slice's.
Example
let query = "Con"; let contents = "\ helloconcon, Conster."; assert_eq!( vec!["Conster."], eye_minigrep::search(query, contents) );