mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: Fix various spelling errors using typos
This fixes all typos found by the typos utility with respect to the config file. Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
committed by
Rob Bradford
parent
fa09045f55
commit
7bf0cc1ed5
@@ -257,7 +257,7 @@ impl MemoryRangeTable {
|
||||
length as usize / (std::mem::size_of::<MemoryRange>()),
|
||||
Default::default,
|
||||
);
|
||||
// SAFETY: the slice is construted with the correct arguments
|
||||
// SAFETY: the slice is constructed with the correct arguments
|
||||
fd.read_exact(unsafe {
|
||||
std::slice::from_raw_parts_mut(
|
||||
data.as_ptr() as *mut MemoryRange as *mut u8,
|
||||
@@ -274,7 +274,7 @@ impl MemoryRangeTable {
|
||||
}
|
||||
|
||||
pub fn write_to(&self, fd: &mut dyn Write) -> Result<(), MigratableError> {
|
||||
// SAFETY: the slice is construted with the correct arguments
|
||||
// SAFETY: the slice is constructed with the correct arguments
|
||||
fd.write_all(unsafe {
|
||||
std::slice::from_raw_parts(self.data.as_ptr() as *const u8, self.length() as usize)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user