Skip to content

Commit 23a5c21

Browse files
committed
Fix a typo in a comment.
1 parent 91a9f83 commit 23a5c21

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/unix

1 file changed

+1
-1
lines changed

library/std/src/sys/unix/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ pub fn link(src: &Path, dst: &Path) -> io::Result<()> {
10681068
let src = cstr(src)?;
10691069
let dst = cstr(dst)?;
10701070
// Use `linkat` with `AT_FDCWD` instead of `link` as `link` leaves it
1071-
// implmentation-defined whether it follows symlinks. Pass 0 as the
1071+
// implementation-defined whether it follows symlinks. Pass 0 as the
10721072
// `linkat` flags argument so that we don't follow symlinks.
10731073
cvt(unsafe { libc::linkat(libc::AT_FDCWD, src.as_ptr(), libc::AT_FDCWD, dst.as_ptr(), 0) })?;
10741074
Ok(())

0 commit comments

Comments
 (0)