]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #88648 - kpreid:option, r=Mark-Simulacrum
authorJack Huey <31162821+jackh726@users.noreply.github.com>
Wed, 8 Sep 2021 16:24:18 +0000 (12:24 -0400)
committerGitHub <noreply@github.com>
Wed, 8 Sep 2021 16:24:18 +0000 (12:24 -0400)
commit2bbcf929c6cce88ae4b5be95dcf8d1e6aa25e7cf
treeffccfd82da1385d30907e773a02e485429de93a1
parentb1c782f20b99bddf4244d0228fff401e1215f4df
parent9a3a2a1c3784905eee405becdbd2e5c7ebd5dbce
Rollup merge of #88648 - kpreid:option, r=Mark-Simulacrum

Correct “copies” to “moves” in `<Option<T> as From<T>>::from` doc, and other copyediting

The `impl<T> From<T> for Option<T>` has no `Copy` or `Clone` bound, so its operation is guaranteed to be a move. The call site might copy, but the function itself cannot.

Since that would have been a rather small PR, I also reviewed the other documentation in the file and made other improvements (in separate commits): adding periods and commas, linking `Deref::Target`, and clarifying what "a container" is in `FromIterator`.