Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cap-tempfile/src/tempfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ fn new_tempfile(d: &Dir, anonymous: bool) -> io::Result<(File, Option<String>)>
}

impl<'d> TempFile<'d> {
/// Crate a new temporary file in the provided directory.
/// Create a new temporary file in the provided directory.
pub fn new(dir: &'d Dir) -> io::Result<Self> {
let (fd, name) = new_tempfile(dir, false)?;
Ok(Self { dir, fd, name })
}

/// Crate a new temporary file in the provided directory that will not have
/// Create a new temporary file in the provided directory that will not have
/// a name. This corresponds to [`tempfile::tempfile_in`].
///
/// [`tempfile::tempfile_in`]: https://docs.rs/tempfile/latest/tempfile/fn.tempfile_in.html
Expand Down
Loading