Commit Graph

3 Commits

Author SHA1 Message Date
Tony Yang
2501734007 Fix Rust Max_array examples (#1960)
* 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.
2020-05-11 01:03:13 +02:00
Christopher Serr
91a35e65d4 Improve the Rust examples
This commit
 - formats the Rust examples idiomatically
 - uses idiomatic code
 - uses only safe code without compromising on performance
 - makes them compile on stable
2020-03-26 23:28:49 +01:00
Rubén
6f7a4b8b4a Add D examples and beautify all examples names 2017-10-12 02:15:31 +02:00