Last active
March 5, 2017 20:00
-
-
Save ironhouzi/af01b1e58bd53ce2fb048621abbd9ddd to your computer and use it in GitHub Desktop.
mismatched types error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub mod table; | |
fn sanskrit_quickcheck(string: &str) -> bool { | |
for r in &table::S_BASIC_RULES { | |
if string.starts_swith(r) { // rustc: no method named `starts_swith` found for type `&str` in the current scope | |
return true; | |
} | |
} | |
false | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub const S_BASIC_RULES: [&'static str; 25] = | |
["phyw", "ghr", "hra", "hwa", "tsy", "trw", "rdh", "sye", "n.y", "gh", "dh", "cy", "jh", "nn", | |
"mm", "ww", "yy", "rr", "hy", "ty", "tv", "tw", "tz", "bh", "ss"]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment