Skip to content

Commit 0fe11c4

Browse files
authored
doc: document how to "keep" temporary files/dirs after creation (#328)
fixes #315
1 parent 35e0629 commit 0fe11c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,10 @@ impl<'a, 'b> Builder<'a, 'b> {
466466
/// scope.
467467
///
468468
/// By default, the file/folder is automatically cleaned up in the destructor of
469-
/// [`NamedTempFile`]/[`TempDir`]. When `keep` is set to `true`, this behavior is supressed.
469+
/// [`NamedTempFile`]/[`TempDir`]. When `keep` is set to `true`, this behavior is suppressed.
470+
///
471+
/// If you wish to keep a temporary file or directory after creating it, call
472+
/// [`NamedTempFile::keep`] or [`TempDir::into_path`] respectively.
470473
///
471474
/// # Examples
472475
///

0 commit comments

Comments
 (0)