Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
CraftSpider committed Dec 1, 2024
1 parent dcf6d26 commit 5c14e0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shims/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ impl VisitProvenance for WeakFileDescriptionRef {

/// A unique id for file descriptions. While we could use the address, considering that
/// is definitely unique, the address would expose interpreter internal state when used
/// for sorting things. So instead we generate a unique id per file description that stays
/// the same even if a file descriptor is duplicated and gets a new integer file descriptor.
/// for sorting things. So instead we generate a unique id per file description is the name
/// for all `dup`licates and is never reused.
#[derive(Debug, Copy, Clone, Default, Eq, PartialEq, Ord, PartialOrd)]
pub struct FdId(usize);

Expand Down

0 comments on commit 5c14e0c

Please sign in to comment.