Skip to content

Commit be4bff8

Browse files
likebreathandreeaflorescu
authored andcommitted
Correct the comments for GuestMemory::write_volatile_to
Signed-off-by: Bo Chen <[email protected]>
1 parent 23f61af commit be4bff8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/guest_memory.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -725,9 +725,9 @@ pub trait GuestMemory {
725725
})
726726
}
727727

728-
/// Reads up to `count` bytes from the container at `addr` and writes them it into guest memory.
728+
/// Reads up to `count` bytes from guest memory at `addr` and writes them it into an object.
729729
///
730-
/// Returns the number of bytes written into guest memory.
730+
/// Returns the number of bytes copied from guest memory.
731731
///
732732
/// # Arguments
733733
/// * `addr` - Begin reading from this address.
@@ -782,7 +782,7 @@ pub trait GuestMemory {
782782
Ok(())
783783
}
784784

785-
/// Reads exactly `count` bytes from the container at `addr` and writes them into guest memory.
785+
/// Reads exactly `count` bytes from guest memory at `addr` and writes them into an object.
786786
///
787787
/// # Errors
788788
///

0 commit comments

Comments
 (0)