/// 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
///
/// 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
///
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