Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
agostbiro committed Sep 20, 2024
1 parent 85985a8 commit 4527fd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/edr_common/src/errors/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub enum FsPathError {
/// Provides additional path context for [`std::fs::read_link`].
#[error("failed to read from {path:?}: {source}")]
ReadLink { source: io::Error, path: PathBuf },
/// Provides additional path context for [`File::create`].
/// Provides additional path context for [`std::fs::File::create`].
#[error("failed to create file {path:?}: {source}")]
CreateFile { source: io::Error, path: PathBuf },
/// Provides additional path context for [`std::fs::remove_file`].
Expand Down Expand Up @@ -88,7 +88,7 @@ impl FsPathError {
}
}

/// Returns the complementary error variant for [`File::create`].
/// Returns the complementary error variant for [`std::fs::File::create`].
pub fn create_file(source: io::Error, path: impl Into<PathBuf>) -> Self {
FsPathError::CreateFile {
source,
Expand Down Expand Up @@ -120,7 +120,7 @@ impl FsPathError {
}
}

/// Returns the complementary error variant for [`File::open`].
/// Returns the complementary error variant for [`std::fs::File::open`].
pub fn open(source: io::Error, path: impl Into<PathBuf>) -> Self {
FsPathError::Open {
source,
Expand Down

0 comments on commit 4527fd8

Please sign in to comment.