From 506eb1494b8e7fd0b700be2629f08a871d94df97 Mon Sep 17 00:00:00 2001 From: Michael Daffin Date: Fri, 2 Apr 2021 14:02:45 +0100 Subject: [PATCH] Change examples to use different loopback devices --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c5cf8bd..9f8a9b7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -107,7 +107,7 @@ impl LoopDevice { /// /// ```rust /// use loopdev::LoopDevice; - /// let mut ld = LoopDevice::open("/dev/loop4").unwrap(); + /// let mut ld = LoopDevice::open("/dev/loop3").unwrap(); /// ld.with().part_scan(true).attach("test.img").unwrap(); /// # ld.detach().unwrap(); /// ``` @@ -247,7 +247,7 @@ impl LoopDevice { /// /// ```rust /// use loopdev::LoopDevice; - /// let ld = LoopDevice::open("/dev/loop4").unwrap(); + /// let ld = LoopDevice::open("/dev/loop5").unwrap(); /// # ld.attach_file("test.img").unwrap(); /// ld.detach().unwrap(); /// ``` @@ -278,7 +278,7 @@ impl LoopDevice { /// /// ```rust /// use loopdev::LoopDevice; -/// let mut ld = LoopDevice::open("/dev/loop4").unwrap(); +/// let mut ld = LoopDevice::open("/dev/loop6").unwrap(); /// ld.with() /// .part_scan(true) /// .attach("test.img") @@ -290,7 +290,7 @@ impl LoopDevice { /// /// ```rust /// use loopdev::LoopDevice; -/// let mut ld = LoopDevice::open("/dev/loop4").unwrap(); +/// let mut ld = LoopDevice::open("/dev/loop7").unwrap(); /// ld.with() /// .offset(1024*1024) /// .size_limit(1024*1024*1024)