Update cmp.rs

Fixed space
This commit is contained in:
Marvin Huber 2021-01-17 16:11:48 +01:00 committed by GitHub
parent 7d3818152d
commit 7276b6c328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -541,7 +541,7 @@ impl Ordering {
/// assert_eq!(result, Ordering::Equal); /// assert_eq!(result, Ordering::Equal);
/// ///
/// let x: (i64, i64, i64) = (1, 2, 7); /// let x: (i64, i64, i64) = (1, 2, 7);
/// let y: (i64, i64, i64) = (1, 5, 3); /// let y: (i64, i64, i64) = (1, 5, 3);
/// let result = x.0.cmp(&y.0).then_with(|| x.1.cmp(&y.1)).then_with(|| x.2.cmp(&y.2)); /// let result = x.0.cmp(&y.0).then_with(|| x.1.cmp(&y.1)).then_with(|| x.2.cmp(&y.2));
/// ///
/// assert_eq!(result, Ordering::Less); /// assert_eq!(result, Ordering::Less);