From d4763dac9e8a5984244e5bdc852dcfedff6234c2 Mon Sep 17 00:00:00 2001 From: Peter Kehl Date: Tue, 2 Mar 2021 12:38:22 -0800 Subject: [PATCH] FloatToInit: Replacing round_unchecked_to --> to_int_unchecked FloatToInit docs: Replacing round_unchecked_to with to_int_unchecked. Bug #82709. --- library/core/src/convert/num.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/convert/num.rs b/library/core/src/convert/num.rs index 2dd5e813d6f..5b113610a5d 100644 --- a/library/core/src/convert/num.rs +++ b/library/core/src/convert/num.rs @@ -9,7 +9,7 @@ mod private { pub trait Sealed {} } -/// Supporting trait for inherent methods of `f32` and `f64` such as `round_unchecked_to`. +/// Supporting trait for inherent methods of `f32` and `f64` such as `to_int_unchecked`. /// Typically doesn’t need to be used directly. #[unstable(feature = "convert_float_to_int", issue = "67057")] pub trait FloatToInt: private::Sealed + Sized {