1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00

fix some typos

This commit is contained in:
Martin Lindhe 2017-10-30 13:27:16 +01:00 committed by Andrew Gallant
parent 8b9eba2147
commit c794ef2f04
5 changed files with 6 additions and 6 deletions

View File

@ -509,7 +509,7 @@ impl Glob {
Some(&self.tokens[start..])
}
/// Returns the pattern as a literal if and only if the pattern exclusiely
/// Returns the pattern as a literal if and only if the pattern exclusively
/// matches the basename of a file path *and* is a literal.
///
/// The basic format of these patterns is `**/{literal}`, where `{literal}`

View File

@ -116,7 +116,7 @@ pub enum Error {
Glob {
/// The original glob that caused this error. This glob, when
/// available, always corresponds to the glob provided by an end user.
/// e.g., It is the glob as writtein in a `.gitignore` file.
/// e.g., It is the glob as written in a `.gitignore` file.
///
/// (This glob may be distinct from the glob that is actually
/// compiled, after accounting for `gitignore` semantics.)

View File

@ -112,12 +112,12 @@ fn read_full<R: io::Read>(
/// A reader that transcodes to UTF-8. The source encoding is determined by
/// inspecting the BOM from the stream read from `R`, if one exists. If a
/// UTF-16 BOM exists, then the source stream is trancoded to UTF-8 with
/// UTF-16 BOM exists, then the source stream is transcoded to UTF-8 with
/// invalid UTF-16 sequences translated to the Unicode replacement character.
/// In all other cases, the underlying reader is passed through unchanged.
///
/// `R` is the type of the underlying reader and `B` is the type of an internal
/// buffer used to store the results of trancoding.
/// buffer used to store the results of transcoding.
///
/// Note that not all methods on `io::Read` work with this implementation.
/// For example, the `bytes` adapter method attempts to read a single byte at

View File

@ -545,7 +545,7 @@ impl fmt::Display for Error {
Error::InvalidFormat(ref original) => {
write!(
f,
"Invalid color speci format: '{}'. Valid format \
"Invalid color spec format: '{}'. Valid format \
is '(path|line|column|match):(fg|bg|style):(value)'.",
original)
}

View File

@ -125,7 +125,7 @@ sherlock:be, to a very large extent, the result of luck. Sherlock Holmes
sherlock!(with_heading, |wd: WorkDir, mut cmd: Command| {
// This forces the issue since --with-filename is disabled by default
// when searching one fil.e
// when searching one file.
cmd.arg("--with-filename").arg("--heading");
let lines: String = wd.stdout(&mut cmd);
let expected = "\