Skip to content

Commit 7d26cec

Browse files
committed
update AsPrimitive Safety docs for rust 1.45
1 parent 3973bab commit 7d26cec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cast.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,8 @@ impl<T: NumCast> NumCast for Wrapping<T> {
752752
///
753753
/// # Safety
754754
///
755-
/// Currently, some uses of the `as` operator are not entirely safe.
756-
/// In particular, it is undefined behavior if:
755+
/// **In Rust versions before 1.45.0**, some uses of the `as` operator were not entirely safe.
756+
/// In particular, it was undefined behavior if:
757757
///
758758
/// - A truncated floating point value cannot fit in the target integer
759759
/// type ([#10184](https://github.com/rust-lang/rust/issues/10184));

0 commit comments

Comments
 (0)