Skip to content

Commit

Permalink
doc: document how to "keep" temporary files/dirs after creation (#328)
Browse files Browse the repository at this point in the history
fixes #315
  • Loading branch information
Stebalien authored Feb 16, 2025
1 parent 35e0629 commit 0fe11c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,10 @@ impl<'a, 'b> Builder<'a, 'b> {
/// scope.
///
/// By default, the file/folder is automatically cleaned up in the destructor of
/// [`NamedTempFile`]/[`TempDir`]. When `keep` is set to `true`, this behavior is supressed.
/// [`NamedTempFile`]/[`TempDir`]. When `keep` is set to `true`, this behavior is suppressed.
///
/// If you wish to keep a temporary file or directory after creating it, call
/// [`NamedTempFile::keep`] or [`TempDir::into_path`] respectively.
///
/// # Examples
///
Expand Down

0 comments on commit 0fe11c4

Please sign in to comment.