]> git.proxmox.com Git - cargo.git/blobdiff - vendor/tempfile/src/dir.rs
New upstream version 0.52.0
[cargo.git] / vendor / tempfile / src / dir.rs
index ae8a6377e44d0f21f194c009b74b8ce051d0b92f..d6307627f1046ff5d9f11ad40967dfa911ec2dd5 100644 (file)
@@ -20,7 +20,7 @@ use crate::Builder;
 /// The `tempdir` function creates a directory in the file system
 /// and returns a [`TempDir`].
 /// The directory will be automatically deleted when the `TempDir`s
-/// desctructor is run.
+/// destructor is run.
 ///
 /// # Resource Leaking
 ///
@@ -69,7 +69,7 @@ pub fn tempdir() -> io::Result<TempDir> {
 /// The `tempdir` function creates a directory in the file system
 /// and returns a [`TempDir`].
 /// The directory will be automatically deleted when the `TempDir`s
-/// desctructor is run.
+/// destructor is run.
 ///
 /// # Resource Leaking
 ///
@@ -326,7 +326,7 @@ impl TempDir {
         self.path.take().unwrap()
     }
 
-    /// Closes and removes the temporary directory, returing a `Result`.
+    /// Closes and removes the temporary directory, returning a `Result`.
     ///
     /// Although `TempDir` removes the directory on drop, in the destructor
     /// any errors are ignored. To detect errors cleaning up the temporary