about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorMario Carneiro <di.gama@gmail.com>2021-10-07 03:33:00 -0700
committerGitHub <noreply@github.com>2021-10-07 03:33:00 -0700
commit3eb87dbe2ddd99c5334d5282e6a4d3de6d9fa6c0 (patch)
treeb5e965669bb24450b6a0a4ccda088f2e91a9529e /library/std/src/sys/unix/stack_overflow.rs
parentca8078d7b2e40c24a39e5fe2a910afef4c91ebfc (diff)
downloadrust-3eb87dbe2ddd99c5334d5282e6a4d3de6d9fa6c0.tar.gz
rust-3eb87dbe2ddd99c5334d5282e6a4d3de6d9fa6c0.zip
doc: guarantee call order for sort_by_cached_key
`slice::sort_by_cached_key` takes a caching function
`f: impl FnMut(&T) -> K`, which means that the order that calls to the
caching function are made is user-visible. This adds a clause to the
documentation to promise the current behavior, which is that `f` is
called on all elements of the slice from left to right, unless the slice
has len < 2 in which case `f` is not called.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions