* Fix Max_array.rs iter_mut is not necessary
The previous example failed to compile as `y` was not borrowed as a mutable reference but used to produce a mutable iterator. Changing from `iter_mut()` to `iter()` resolved this issue.
* Fix Max_array_(Optimized).rs
The previous example failed to compile as `y` was not borrowed as a mutable reference but used to produce a mutable iterator. Changing from `iter_mut()` to `iter()` resolved this issue.
This commit
- formats the Rust examples idiomatically
- uses idiomatic code
- uses only safe code without compromising on performance
- makes them compile on stable