]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #84878 - jimblandy:contains-doc-fix, r=joshtriplett
authorRalf Jung <post@ralfj.de>
Wed, 5 May 2021 15:52:26 +0000 (17:52 +0200)
committerGitHub <noreply@github.com>
Wed, 5 May 2021 15:52:26 +0000 (17:52 +0200)
commit92f3f0830f7f4627af1adb7d828527f2aae88017
tree4db6b0de5c601304b65aac57ce5a6a77f761306b
parentb2bb6876e0053afcfac2e1d179897191559675de
parentd53469c1d350fd47edc08c0419f5a4e58453d110
Rollup merge of #84878 - jimblandy:contains-doc-fix, r=joshtriplett

Clarify documentation for `[T]::contains`

Change the documentation to correctly characterize when the suggested alternative to `contains` applies, and correctly explain why it works.

Fixes #84877