Skip to content

Commit

Permalink
chore: remove redundant words in comment
Browse files Browse the repository at this point in the history
Signed-off-by: crystalstall <[email protected]>
  • Loading branch information
crystalstall authored and gitbot committed Feb 20, 2025
1 parent 290c47e commit a4abafe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion std/src/ffi/os_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ impl OsString {
OsStr::from_inner_mut(self.inner.leak())
}

/// Truncate the the `OsString` to the specified length.
/// Truncate the `OsString` to the specified length.
///
/// # Panics
/// Panics if `len` does not lie on a valid `OsStr` boundary
Expand Down
2 changes: 1 addition & 1 deletion std/src/pipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl PipeReader {
/// let mut jobs = vec![];
/// let (reader, mut writer) = std::pipe::pipe()?;
///
/// // Write NUM_SLOT characters the the pipe.
/// // Write NUM_SLOT characters the pipe.
/// writer.write_all(&[b'|'; NUM_SLOT as usize])?;
///
/// // Spawn several processes that read a character from the pipe, do some work, then
Expand Down
2 changes: 1 addition & 1 deletion std/src/sync/poison/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ impl<T: ?Sized> Mutex<T> {
/// # Errors
///
/// If another user of this mutex panicked while holding the mutex, then
/// this call will return an error containing the the underlying data
/// this call will return an error containing the underlying data
/// instead.
///
/// # Examples
Expand Down

0 comments on commit a4abafe

Please sign in to comment.