]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #70760 - PonasKovas:docs, r=Dylan-DPC
authorDylan DPC <dylan.dpc@gmail.com>
Sun, 5 Apr 2020 11:13:10 +0000 (13:13 +0200)
committerGitHub <noreply@github.com>
Sun, 5 Apr 2020 11:13:10 +0000 (13:13 +0200)
docs: make the description of Result::map_or more clear

The documentation of [`Result::map_or`](https://doc.rust-lang.org/std/result/enum.Result.html#method.map_or) is very unclear and confusing, probably because it was copied straight from [`Option::map_or`](https://doc.rust-lang.org/std/option/enum.Option.html#method.map_or) and someone forgot to adapt it for Result.


Trivial merge