1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-02 05:57:46 +00:00

Merge pull request #1778 from EdwardBetts/spelling

Correct spelling
This commit is contained in:
Sylvestre Ledru 2021-03-09 17:16:39 +01:00 committed by GitHub
commit 1396295877
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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<I>(
&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;
}

View file

@ -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