]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #39955 - mp4096:master, r=GuillaumeGomez
authorbors <bors@rust-lang.org>
Mon, 20 Feb 2017 00:00:53 +0000 (00:00 +0000)
committerbors <bors@rust-lang.org>
Mon, 20 Feb 2017 00:00:53 +0000 (00:00 +0000)
Docs: Better explanation of return values for min, max functions for the Iterator trait

Added an explanation that `None` is returned if an iterator is empty.

Also added examples for `max` and `min`. I chose not to add examples for other functions like `max_by_key` etc. so that the examples stay concised and focused on the main functionality.


Trivial merge