Created
April 1, 2022 02:15
-
-
Save jcar787/4ae3f4ab01fd1b01fb5c03f74e98b974 to your computer and use it in GitHub Desktop.
Showing an example of mutable arrays in Rust
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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