about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-06 18:26:33 +0000
committerbors <bors@rust-lang.org>2020-09-06 18:26:33 +0000
commit5d74e880061c250936105125a2ffa901f315aaaa (patch)
treedd021ddcf29917641dc01f62aedc1fb33f9e6432 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentac892a12743551c98da1d4b8c6366e285a10833f (diff)
parent8af85fa1f73428888730b05e48291c73897dd44d (diff)
downloadrust-5d74e880061c250936105125a2ffa901f315aaaa.tar.gz
rust-5d74e880061c250936105125a2ffa901f315aaaa.zip
Auto merge of #75949 - vext01:filter-docs, r=jyn514
Try to improve the documentation of `filter()` and `filter_map()`.

I believe the documentation is currently a little misleading.

For example, in the docs for `filter()`:

> If the closure returns `false`, it will try again, and call the closure on
> the next element, seeing if it passes the test.

This kind of implies that if the closure returns true then we *don't* "try
again" and no further elements are considered. In actuality that's not the
case, every element is tried regardless of what happened with the previous
element.

This change tries to clarify that by removing the uses of "try again"
altogether.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions