Skip to content

Instantly share code, notes, and snippets.

@cbzehner
Last active February 19, 2018 00:55
Show Gist options
  • Save cbzehner/73149ae7bc97665f113b3d9545ff3180 to your computer and use it in GitHub Desktop.
Save cbzehner/73149ae7bc97665f113b3d9545ff3180 to your computer and use it in GitHub Desktop.
fn main() {
let rust = String::from("🦀 is 🔥");
let split_crab = &rust[1..];
println!("{}", split_crab);
}
@cbzehner
Copy link
Author

cbzehner commented Feb 19, 2018

thread 'main' panicked at 'byte index 1 is not a char boundary...
See full runtime error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment