Skip to content

Commit

Permalink
Adds a note to the detach doc block
Browse files Browse the repository at this point in the history
  • Loading branch information
mdaffin committed Aug 11, 2019
1 parent 9ad0c53 commit 090a699
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ impl LoopDevice {

/// Detach a loop device from its backing file.
///
/// Note that the device won't fully detach until a short delay after the underling device file
/// gets closed. This happens when LoopDev goes out of scope so you should ensure the LoopDev
/// lives for a short a time as possible.
///
/// # Examples
///
/// ```rust
Expand Down

0 comments on commit 090a699

Please sign in to comment.