From c0870e2f55b8b160c8ad7af684831902b4979cfb Mon Sep 17 00:00:00 2001 From: Fabian Zaiser Date: Thu, 29 Mar 2018 01:10:37 +0200 Subject: [PATCH] Fix doctest (typo). --- src/libcore/num/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 1346435a21a..89276fcee80 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -3252,7 +3252,7 @@ pub fn pow(self, mut exp: u32) -> Self { ``` #![feature(euclidean_division)] -assert_eq(7", stringify!($SelfT), ".div_euc(4), 1); // or any other integer type +assert_eq!(7", stringify!($SelfT), ".div_euc(4), 1); // or any other integer type ```"), #[unstable(feature = "euclidean_division", issue = "49048")] #[inline] @@ -3274,7 +3274,7 @@ pub fn div_euc(self, rhs: Self) -> Self { ``` #![feature(euclidean_division)] -assert_eq(7", stringify!($SelfT), ".mod_euc(4), 3); // or any other integer type +assert_eq!(7", stringify!($SelfT), ".mod_euc(4), 3); // or any other integer type ```"), #[unstable(feature = "euclidean_division", issue = "49048")] #[inline] -- 2.44.0