Skip to content

Commit 4e6ce9c

Browse files
andreeaflorescujiangliu
authored andcommitted
fix indentation for code examples
The uncommented code needs to be aligned at the beginning of a line. Signed-off-by: Andreea Florescu <[email protected]>
1 parent e63914e commit 4e6ce9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/guest_memory.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,10 @@ pub trait GuestMemoryRegion: Bytes<MemoryRegionAddress, E = Error> {
300300
/// # #[cfg(feature = "backend-mmap")]
301301
/// # {
302302
/// # use vm_memory::{GuestAddress, GuestMemory, GuestMemoryMmap, GuestRegionMmap};
303-
/// let addr = GuestAddress(0x1000);
304-
/// let mem = GuestMemoryMmap::from_ranges(&[(addr, 0x1000)]).unwrap();
305-
/// let r = mem.find_region(addr).unwrap();
306-
/// assert_eq!(r.is_hugetlbfs(), None);
303+
/// let addr = GuestAddress(0x1000);
304+
/// let mem = GuestMemoryMmap::from_ranges(&[(addr, 0x1000)]).unwrap();
305+
/// let r = mem.find_region(addr).unwrap();
306+
/// assert_eq!(r.is_hugetlbfs(), None);
307307
/// # }
308308
/// ```
309309
fn is_hugetlbfs(&self) -> Option<bool> {

0 commit comments

Comments
 (0)