mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-17 19:14:16 +00:00
Clarify that ordering is unspecified
This commit is contained in:
parent
b9f008b1ee
commit
06b17a2181
@ -373,6 +373,8 @@ impl<T> [T] {
|
||||
///
|
||||
/// During sorting, the key function is called at most once per element, by using
|
||||
/// temporary storage to remember the results of key evaluation.
|
||||
/// The order of calls to the key function is unspecified and may change in future versions
|
||||
/// of the standard library.
|
||||
///
|
||||
/// This sort is stable (i.e., does not reorder equal elements) and *O*(*m* \* *n* + *n* \* log(*n*))
|
||||
/// worst-case, where the key function is *O*(*m*).
|
||||
|
Loading…
Reference in New Issue
Block a user