Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions library/std/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,8 @@ impl File {
/// consider [`std::fs::read()`][self::read] or
/// [`std::fs::read_to_string()`][self::read_to_string] instead.
///
/// This call follows symlinks.
///
/// # Errors
///
/// This function will return an error if `path` does not already exist.
Expand Down Expand Up @@ -580,6 +582,8 @@ impl File {
/// consider [`std::fs::read()`][self::read] or
/// [`std::fs::read_to_string()`][self::read_to_string] instead.
///
/// This call follows symlinks.
///
/// # Errors
///
/// This function will return an error if `path` does not already exist,
Expand Down Expand Up @@ -622,6 +626,8 @@ impl File {
/// See also [`std::fs::write()`][self::write] for a simple function to
/// create a file with some given data.
///
/// This call follows symlinks.
///
/// # Examples
///
/// ```no_run
Expand Down Expand Up @@ -653,6 +659,8 @@ impl File {
/// See also [`std::fs::write()`][self::write] for a simple function to
/// create a file with some given data.
///
/// This call follows symlinks.
///
/// # Examples
///
/// ```no_run
Expand Down Expand Up @@ -696,6 +704,8 @@ impl File {
/// [`AlreadyExists`]: crate::io::ErrorKind::AlreadyExists
/// [TOCTOU]: self#time-of-check-to-time-of-use-toctou
///
/// This call does not follows symlinks.

@tbu- tbu- May 6, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// This call does not follows symlinks.
/// This call does not follow symlinks.

View changes since the review

///
/// # Examples
///
/// ```no_run
Expand Down
Loading