Skip to content

Instantly share code, notes, and snippets.

@yvan-sraka
Created May 5, 2022 15:36
Show Gist options
  • Save yvan-sraka/5d1e6c9e5b0bf963215a860a60a76214 to your computer and use it in GitHub Desktop.
Save yvan-sraka/5d1e6c9e5b0bf963215a860a60a76214 to your computer and use it in GitHub Desktop.
fn main() {
let x = vec![1, 2, 3];
for i in 0..=x.len() {
println!("{}", x[i]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment