Skip to content

Commit e40fa0d

Browse files
authored
Rollup merge of rust-lang#59831 - ehuss:ordering-docs, r=kennytm
Remove strange formatting in `Ordering` docs. I can't really fathom what the intent of the brackets is. The [original PR](rust-lang#12956) doesn't give any hints. I think it seems fine without them.
2 parents 0fa4ce7 + 3e01901 commit e40fa0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libcore/cmp.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,13 +286,13 @@ pub struct AssertParamIsEq<T: Eq + ?Sized> { _field: ::marker::PhantomData<T> }
286286
#[derive(Clone, Copy, PartialEq, Debug, Hash)]
287287
#[stable(feature = "rust1", since = "1.0.0")]
288288
pub enum Ordering {
289-
/// An ordering where a compared value is less [than another].
289+
/// An ordering where a compared value is less than another.
290290
#[stable(feature = "rust1", since = "1.0.0")]
291291
Less = -1,
292-
/// An ordering where a compared value is equal [to another].
292+
/// An ordering where a compared value is equal to another.
293293
#[stable(feature = "rust1", since = "1.0.0")]
294294
Equal = 0,
295-
/// An ordering where a compared value is greater [than another].
295+
/// An ordering where a compared value is greater than another.
296296
#[stable(feature = "rust1", since = "1.0.0")]
297297
Greater = 1,
298298
}

0 commit comments

Comments
 (0)