Skip to content

Instantly share code, notes, and snippets.

@jcar787
Created April 1, 2022 02:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcar787/4ae3f4ab01fd1b01fb5c03f74e98b974 to your computer and use it in GitHub Desktop.
Save jcar787/4ae3f4ab01fd1b01fb5c03f74e98b974 to your computer and use it in GitHub Desktop.
Showing an example of mutable arrays in Rust
fn main() {
let mut another_array: [i32:4] = [1,2,3,4];
another_array[0] = 7; // another_array = [7, 2, 3, 4];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment