Skip to content

Commit

Permalink
Rollup merge of #82710 - peter-kehl:FloatToInit_82709, r=sfackler
Browse files Browse the repository at this point in the history
FloatToInit: Replacing round_unchecked_to --> to_int_unchecked

FloatToInit docs: Replacing round_unchecked_to with
to_int_unchecked. Bug #82709.
  • Loading branch information
JohnTitor authored Mar 3, 2021
2 parents 651f53e + d4763da commit 376655e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/convert/num.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 376655e

Please sign in to comment.