Skip to content

Commit

Permalink
Change examples to use different loopback devices
Browse files Browse the repository at this point in the history
  • Loading branch information
mdaffin committed Apr 2, 2021
1 parent 15b271f commit 506eb14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
/// ```
Expand Down Expand Up @@ -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();
/// ```
Expand Down Expand Up @@ -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")
Expand All @@ -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)
Expand Down

0 comments on commit 506eb14

Please sign in to comment.