Skip to content

Instantly share code, notes, and snippets.

@gilesc
Created May 27, 2013 02:06
Show Gist options
  • Save gilesc/5654832 to your computer and use it in GitHub Desktop.
Save gilesc/5654832 to your computer and use it in GitHub Desktop.
Troubles with Rust
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