@@ -980,11 +980,11 @@ extern "rust-intrinsic" {
980
980
///
981
981
/// * Both `src` and `dst` must be properly aligned.
982
982
///
983
- /// * `src.offset(count)` must be [valid]. In other words, the region of
983
+ /// * `src.offset(count-1 )` must be [valid]. In other words, the region of
984
984
/// memory which begins at `src` and has a length of `count *
985
985
/// size_of::<T>()` bytes must belong to a single, live allocation.
986
986
///
987
- /// * `dst.offset(count)` must be [valid]. In other words, the region of
987
+ /// * `dst.offset(count-1 )` must be [valid]. In other words, the region of
988
988
/// memory which begins at `dst` and has a length of `count *
989
989
/// size_of::<T>()` bytes must belong to a single, live allocation.
990
990
///
@@ -1068,11 +1068,11 @@ extern "rust-intrinsic" {
1068
1068
///
1069
1069
/// * Both `src` and `dst` must be properly aligned.
1070
1070
///
1071
- /// * `src.offset(count)` must be [valid]. In other words, the region of
1071
+ /// * `src.offset(count-1 )` must be [valid]. In other words, the region of
1072
1072
/// memory which begins at `src` and has a length of `count *
1073
1073
/// size_of::<T>()` bytes must belong to a single, live allocation.
1074
1074
///
1075
- /// * `dst.offset(count)` must be [valid]. In other words, the region of
1075
+ /// * `dst.offset(count-1 )` must be [valid]. In other words, the region of
1076
1076
/// memory which begins at `dst` and has a length of `count *
1077
1077
/// size_of::<T>()` bytes must belong to a single, live allocation.
1078
1078
///
@@ -1118,7 +1118,7 @@ extern "rust-intrinsic" {
1118
1118
///
1119
1119
/// * `dst` must be [valid].
1120
1120
///
1121
- /// * `dst.offset(count)` must be [valid]. In other words, the region of
1121
+ /// * `dst.offset(count-1 )` must be [valid]. In other words, the region of
1122
1122
/// memory which begins at `dst` and has a length of `count *
1123
1123
/// size_of::<T>()` bytes must belong to a single, live allocation.
1124
1124
///
0 commit comments