Skip to content

Commit

Permalink
Update src/file/imp/unix.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
  • Loading branch information
2 people authored and Stebalien committed Jul 29, 2022
1 parent a5d8178 commit 88910f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file/imp/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ pub fn persist(old_path: &Path, new_path: &Path, overwrite: bool) -> io::Result<
}
}

// Otherwise use `linkat` to create the new filesysten name, which
// Otherwise use `linkat` to create the new filesystem name, which
// will fail if the name already exists, and then `unlinkat` to remove
// the old name.
linkat(cwd(), old_path, cwd(), new_path, AtFlags::empty())?;
Expand Down

0 comments on commit 88910f1

Please sign in to comment.