Skip to content

Commit c38c894

Browse files
crystalstallgitbot
authored and
gitbot
committed
chore: remove redundant words in comment
Signed-off-by: crystalstall <[email protected]>
1 parent a051168 commit c38c894

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

std/src/ffi/os_str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ impl OsString {
550550
OsStr::from_inner_mut(self.inner.leak())
551551
}
552552

553-
/// Truncate the the `OsString` to the specified length.
553+
/// Truncate the `OsString` to the specified length.
554554
///
555555
/// # Panics
556556
/// Panics if `len` does not lie on a valid `OsStr` boundary

std/src/pipe.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ impl PipeReader {
9797
/// let mut jobs = vec![];
9898
/// let (reader, mut writer) = std::pipe::pipe()?;
9999
///
100-
/// // Write NUM_SLOT characters the the pipe.
100+
/// // Write NUM_SLOT characters the pipe.
101101
/// writer.write_all(&[b'|'; NUM_SLOT as usize])?;
102102
///
103103
/// // Spawn several processes that read a character from the pipe, do some work, then

std/src/sync/poison/mutex.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ impl<T: ?Sized> Mutex<T> {
534534
/// # Errors
535535
///
536536
/// If another user of this mutex panicked while holding the mutex, then
537-
/// this call will return an error containing the the underlying data
537+
/// this call will return an error containing the underlying data
538538
/// instead.
539539
///
540540
/// # Examples

0 commit comments

Comments
 (0)