Skip to content

Commit

Permalink
Fixed typo in TempFile comment (#381)
Browse files Browse the repository at this point in the history
Co-authored-by: Esther Xu <[email protected]>
  • Loading branch information
estherxyx and Esther Xu authored Jan 28, 2025
1 parent 4747d7d commit 3747f22
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 3747f22

Please sign in to comment.