fn change_value(arr: &mut [i32]) {
arr[1] = 10;
}
fn main() {
let mut arr: [i32; 4] = [1, 2, 3, 4];
change_value(&mut arr);
println!("this is {}", arr[1]);
}
Code Example |
---|
Rust :: whats the difference between Iter and into_iter rust |
Rust :: create file rust |
Rust :: char byte size rust |
Rust :: rust u8 to string |
Rust :: for loops in rust |
Rust :: rust case |
Rust :: read file rust |
Rust :: rust into string |
Rust :: loop rust |
Rust :: rust const string |
Rust :: const generics in rust |
Rust :: custom errors rust |
Rust :: rust comment types |
Rust :: rust lang underscore |
Rust :: get function name rust |
Rust :: Read a floating point number from stdin |
Rust :: armanriazi•rust•unsafe•extern•mangling |
Rust :: rust•armanriazi•cast•try_into•unwrap |
Rust :: rustdoc |
Rust :: rust•armanriazi•capacity•reserve |
Lua :: roblox children for loop |
Lua :: roblox lua on player chatted |
Lua :: luau debounce |
Lua :: luau table.find |
Lua :: roblox how to get the players mouse |
Lua :: round to the nearest number lua |
Lua :: how to access an index of a table lua |
Lua :: table lua |
Lua :: int and float in lua |
Lua :: lagstep roblox |