Created
May 27, 2013 02:06
-
-
Save gilesc/5654832 to your computer and use it in GitHub Desktop.
Troubles with Rust
This file contains hidden or 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
extern mod std; | |
fn main() { | |
let s = @"foo bar baz"; | |
// similar results with ~"foo bar baz" | |
// These work | |
s.substr(1, 5); | |
s.slice(1,5); | |
// These don't | |
s.split_str(s, @" "); | |
s.split_str(s, ~" "); | |
s.is_empty(); | |
s.to_lower(); | |
s.lines(); | |
s.words(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment