1
- //! rustc compiler intrinsics.
1
+ //! Compiler intrinsics.
2
2
//!
3
- //! The corresponding definitions are in librustc_codegen_llvm/intrinsic.rs.
3
+ //! The corresponding definitions are in ` librustc_codegen_llvm/intrinsic.rs` .
4
4
//!
5
5
//! # Volatiles
6
6
//!
@@ -697,7 +697,7 @@ extern "rust-intrinsic" {
697
697
/// Creates a value initialized to zero.
698
698
///
699
699
/// `init` is unsafe because it returns a zeroed-out datum,
700
- /// which is unsafe unless T is `Copy`. Also, even if T is
700
+ /// which is unsafe unless `T` is `Copy`. Also, even if T is
701
701
/// `Copy`, an all-zero value may not correspond to any legitimate
702
702
/// state for the type in question.
703
703
pub fn init < T > ( ) -> T ;
@@ -988,7 +988,7 @@ extern "rust-intrinsic" {
988
988
/// beginning at `dst` with the same size.
989
989
///
990
990
/// Like [`read`], `copy_nonoverlapping` creates a bitwise copy of `T`, regardless of
991
- /// whether `T` is [`Copy`]. If `T` is not [`Copy`], using *both* the values
991
+ /// whether `T` is [`Copy`]. If `T` is not [`Copy`], using *both* the values
992
992
/// in the region beginning at `*src` and the region beginning at `*dst` can
993
993
/// [violate memory safety][read-ownership].
994
994
///
@@ -1055,7 +1055,7 @@ extern "rust-intrinsic" {
1055
1055
/// [`copy_nonoverlapping`] can be used instead.
1056
1056
///
1057
1057
/// `copy` is semantically equivalent to C's [`memmove`], but with the argument
1058
- /// order swapped. Copying takes place as if the bytes were copied from `src`
1058
+ /// order swapped. Copying takes place as if the bytes were copied from `src`
1059
1059
/// to a temporary array and then copied from the array to `dst`.
1060
1060
///
1061
1061
/// [`copy_nonoverlapping`]: ./fn.copy_nonoverlapping.html
@@ -1072,7 +1072,7 @@ extern "rust-intrinsic" {
1072
1072
/// * Both `src` and `dst` must be properly aligned.
1073
1073
///
1074
1074
/// Like [`read`], `copy` creates a bitwise copy of `T`, regardless of
1075
- /// whether `T` is [`Copy`]. If `T` is not [`Copy`], using both the values
1075
+ /// whether `T` is [`Copy`]. If `T` is not [`Copy`], using both the values
1076
1076
/// in the region beginning at `*src` and the region beginning at `*dst` can
1077
1077
/// [violate memory safety][read-ownership].
1078
1078
///
0 commit comments