Skip to content

Commit f13b92e

Browse files
mvanhorncakebaker
authored andcommitted
chore: remove duplicate words in six comments
All comment / doc-comment changes. - src/uucore/src/lib/features/checksum/validate.rs L471: "must set it the the detected" -> "must set it to the detected" (also adds the missing "to") - src/uucore/src/lib/features/uptime.rs L416: "logged in in a human-readable format" -> "logged in, in a human-readable format" - src/uu/od/src/output_info.rs L115: "the width is width of the the type" -> "the width is the width of the type" - src/uu/split/src/filenames.rs L113: "Determine if the the output file names" -> "Determine if the output file names" - src/uu/tail/src/paths.rs L228: "if `path` is is a file type" -> "if `path` is a file type" - src/uu/chcon/src/chcon.rs L527: "then is is assumed to be valid" -> "then it is assumed to be valid"
1 parent 4254d7a commit f13b92e

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/uu/chcon/src/chcon.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ fn process_file(
524524
Err(Error::from_io1(s, &file_full_name, r))
525525
};
526526

527-
// SAFETY: If `entry.fts_statp` is not null, then is is assumed to be valid.
527+
// SAFETY: If `entry.fts_statp` is not null, then it is assumed to be valid.
528528
let file_dev_ino: DeviceAndINode = if let Some(st) = entry.stat() {
529529
st.try_into()?
530530
} else {

src/uu/od/src/output_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl OutputInfo {
112112
///
113113
/// This function calculates the required spacing for a single line, given the size
114114
/// of a block, and the width of a block. The size of a block is the largest type
115-
/// and the width is width of the the type which needs the most space to print that
115+
/// and the width is the width of the type which needs the most space to print that
116116
/// number of bytes. So both numbers might refer to different types. All widths
117117
/// include a space at the front. For example the width of a 8-bit hexadecimal,
118118
/// is 3 characters, for example " FF".

src/uu/split/src/filenames.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl Suffix {
110110
/// `-a N` or `--suffix-length=N`
111111
/// - OFF if suffix length is auto pre-calculated (auto-width)
112112
///
113-
/// Suffix auto-width: Determine if the the output file names suffix length should be automatically pre-calculated
113+
/// Suffix auto-width: Determine if the output file names suffix length should be automatically pre-calculated
114114
/// based on number of files that need to written into, having number of files known upfront
115115
/// Suffix length auto pre-calculation rules:
116116
/// - Pre-calculate new suffix length when `-n`/`--number` option (N, K/N, l/N, l/K/N, r/N, r/K/N)

src/uu/tail/src/paths.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ impl PathExtTail for Path {
225225
!matches!(self.parent(), Some(parent) if parent.is_dir())
226226
}
227227

228-
/// Return true if `path` is is a file type that can be tailed
228+
/// Return true if `path` is a file type that can be tailed
229229
fn is_tailable(&self) -> bool {
230230
path_is_tailable(self)
231231
}

src/uucore/src/lib/features/checksum/validate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ impl LineInfo {
468468
/// to populate the fields of the struct.
469469
/// However, there is a catch to handle regarding the handling of `cached_line_format`.
470470
/// In case of non-algo-based format, if `cached_line_format` is Some, it must take the priority
471-
/// over the detected format. Otherwise, we must set it the the detected format.
471+
/// over the detected format. Otherwise, we must set it to the detected format.
472472
/// This specific behavior is emphasized by the test
473473
/// `test_md5sum::test_check_md5sum_only_one_space`.
474474
fn parse(s: impl AsRef<OsStr>, cached_line_format: &mut Option<LineFormat>) -> Option<Self> {

src/uucore/src/lib/features/uptime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ pub fn format_nusers(n: usize) -> String {
413413
)
414414
}
415415

416-
/// Get the number of users currently logged in in a human-readable format
416+
/// Get the number of users currently logged in, in a human-readable format
417417
///
418418
/// # Returns
419419
///

0 commit comments

Comments
 (0)