about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Kehl <peter.kehl@gmail.com>2021-03-02 12:38:22 -0800
committerPeter Kehl <peter.kehl@gmail.com>2021-03-02 12:38:22 -0800
commitd4763dac9e8a5984244e5bdc852dcfedff6234c2 (patch)
tree660fc7f6c9966d92986b8d9f04da549ee56297a5
parent795a934b51cb481ea3cb1cc8c3835a043a9e0102 (diff)
downloadrust-d4763dac9e8a5984244e5bdc852dcfedff6234c2.tar.gz
rust-d4763dac9e8a5984244e5bdc852dcfedff6234c2.zip
FloatToInit: Replacing round_unchecked_to --> to_int_unchecked
FloatToInit docs: Replacing round_unchecked_to with
to_int_unchecked. Bug #82709.
-rw-r--r--library/core/src/convert/num.rs2
1 files changed, 1 insertions, 1 deletions
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<Int>: private::Sealed + Sized {