Function omar_minigrep::search_case_insensitive[][src]

pub fn search_case_insensitive<'a>(
    query: &str,
    contents: &'a str
) -> Vec<&'a str>

Note:

Adds case-case_insensitive search. All you have to do is specify the CASE_INSENSITIVE environment variable before you run the code with any value like true or 1

Example:

$ CASE_INSENSITIVE=true minigrep dreary poem.txt