File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -573,7 +573,7 @@ impl Iterator for AuxFile {
573
573
let mut buf = [ 0_u8 ; size_of :: < Self :: Item > ( ) ] ;
574
574
let mut slice = & mut buf[ ..] ;
575
575
while !slice. is_empty ( ) {
576
- match crate :: io:: read ( & self . 0 , slice) {
576
+ match crate :: io:: read ( & self . 0 , & mut * slice) {
577
577
Ok ( 0 ) => panic ! ( "unexpected end of auxv file" ) ,
578
578
Ok ( n) => slice = & mut slice[ n..] ,
579
579
Err ( crate :: io:: Errno :: INTR ) => continue ,
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ use core::slice;
9
9
10
10
/// A memory buffer that may be uninitialized.
11
11
///
12
- /// If you see errors like "move occurs because `x.y ` has type `&mut [u8]`,
13
- /// which does not implement the `Copy` trait", replace `x.y ` with `&mut *x.y `.
12
+ /// If you see errors like "move occurs because `x` has type `&mut [u8]`,
13
+ /// which does not implement the `Copy` trait", replace `x` with `&mut *x`.
14
14
pub trait Buffer < T > : private:: Sealed < T > { }
15
15
16
16
// Implement `Buffer` for all the types that implement `Sealed`.
You can’t perform that action at this time.
0 commit comments