mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
Fix deprecation commment on core::cmp::lexical_ordering
This commit is contained in:
parent
4562803a3d
commit
4c196c27c4
@ -149,7 +149,7 @@ impl PartialOrd for Ordering {
|
||||
/// If the first ordering is different, the first ordering is all that must be returned.
|
||||
/// If the first ordering is equal, then second ordering is returned.
|
||||
#[inline]
|
||||
#[deprecated = "Just call .cmp() on an Ordering"]
|
||||
#[deprecated = "Just call .cmp() on a tuple"]
|
||||
pub fn lexical_ordering(o1: Ordering, o2: Ordering) -> Ordering {
|
||||
match o1 {
|
||||
Equal => o2,
|
||||
|
Loading…
Reference in New Issue
Block a user