Skip to content

Commit 3747f22

Browse files
estherxyxEsther Xu
and
Esther Xu
authored
Fixed typo in TempFile comment (#381)
Co-authored-by: Esther Xu <estherxu@amazon.com>
1 parent 4747d7d commit 3747f22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cap-tempfile/src/tempfile.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ fn new_tempfile(d: &Dir, anonymous: bool) -> io::Result<(File, Option<String>)>
123123
}
124124

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

132-
/// Crate a new temporary file in the provided directory that will not have
132+
/// Create a new temporary file in the provided directory that will not have
133133
/// a name. This corresponds to [`tempfile::tempfile_in`].
134134
///
135135
/// [`tempfile::tempfile_in`]: https://docs.rs/tempfile/latest/tempfile/fn.tempfile_in.html

0 commit comments

Comments
 (0)