Skip to content

Instantly share code, notes, and snippets.

@zesterer
Created September 7, 2020 14:36
Show Gist options
  • Select an option

  • Save zesterer/e2d98062208d69e59b99756e45a8d9aa to your computer and use it in GitHub Desktop.

Select an option

Save zesterer/e2d98062208d69e59b99756e45a8d9aa to your computer and use it in GitHub Desktop.
fn main() {
let s = r#"fn main() {
let s = @;
let x = s.find('@').unwrap();
println!("{}r#\"{}\"{}{}", &s[..x], s, '#', &s[x + 1..]);
}"#;
let x = s.find('@').unwrap();
println!("{}r#\"{}\"{}{}", &s[..x], s, '#', &s[x + 1..]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment