From e1a9c19b6f8887fdc16d034b4a0ae1b7dabe90c6 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 9 Mar 2021 15:19:35 +0000 Subject: [PATCH] Correct spelling --- src/uu/cp/src/cp.rs | 2 +- src/uu/csplit/src/csplit.rs | 4 ++-- src/uu/split/src/platform/unix.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/uu/cp/src/cp.rs b/src/uu/cp/src/cp.rs index d18edbc10..19763c65c 100644 --- a/src/uu/cp/src/cp.rs +++ b/src/uu/cp/src/cp.rs @@ -938,7 +938,7 @@ fn copy_directory(root: &Path, target: &Target, options: &Options) -> CopyResult Some(parent) => { #[cfg(windows)] { - // On Windows, some pathes are starting with \\? + // On Windows, some paths are starting with \\? // but not always, so, make sure that we are consistent for strip_prefix // See https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file for more info let parent_can = adjust_canonicalization(parent); diff --git a/src/uu/csplit/src/csplit.rs b/src/uu/csplit/src/csplit.rs index 41149a343..0d2fc8121 100644 --- a/src/uu/csplit/src/csplit.rs +++ b/src/uu/csplit/src/csplit.rs @@ -344,7 +344,7 @@ impl<'a> SplitWriter<'a> { /// /// In addition to errors reading/writing from/to a file, the following errors may be returned: /// - if no line matched, an [`::CsplitError::MatchNotFound`]. - /// - if there are not enough lines to accomodate the offset, an + /// - if there are not enough lines to accommodate the offset, an /// [`::CsplitError::LineOutOfRange`]. fn do_to_match( &mut self, @@ -471,7 +471,7 @@ where } } - /// Rewind the iteration by outputing the buffer's content. + /// Rewind the iteration by outputting the buffer's content. fn rewind_buffer(&mut self) { self.rewind = true; } diff --git a/src/uu/split/src/platform/unix.rs b/src/uu/split/src/platform/unix.rs index 331b31115..f26628174 100644 --- a/src/uu/split/src/platform/unix.rs +++ b/src/uu/split/src/platform/unix.rs @@ -4,7 +4,7 @@ use std::io::{BufWriter, Result}; use std::process::{Child, Command, Stdio}; /// A writer that writes to a shell_process' stdin /// -/// We use a shell process (not directy calling a sub-process) so we can forward the name of the +/// We use a shell process (not directly calling a sub-process) so we can forward the name of the /// corresponding output file (xaa, xab, xac… ). This is the way it was implemented in GNU split. struct FilterWriter { /// Running shell process