From c794ef2f04038a18579323b5a50bfc9667289e2a Mon Sep 17 00:00:00 2001 From: Martin Lindhe Date: Mon, 30 Oct 2017 13:27:16 +0100 Subject: [PATCH] fix some typos --- globset/src/glob.rs | 2 +- ignore/src/lib.rs | 2 +- src/decoder.rs | 4 ++-- src/printer.rs | 2 +- tests/tests.rs | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/globset/src/glob.rs b/globset/src/glob.rs index bb7b0602..84e3156b 100644 --- a/globset/src/glob.rs +++ b/globset/src/glob.rs @@ -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}` diff --git a/ignore/src/lib.rs b/ignore/src/lib.rs index 456079c1..3fbb8974 100644 --- a/ignore/src/lib.rs +++ b/ignore/src/lib.rs @@ -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.) diff --git a/src/decoder.rs b/src/decoder.rs index d718f55c..bd2c3119 100644 --- a/src/decoder.rs +++ b/src/decoder.rs @@ -112,12 +112,12 @@ fn read_full( /// 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 diff --git a/src/printer.rs b/src/printer.rs index 3b23e9b0..0cd916d5 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -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) } diff --git a/tests/tests.rs b/tests/tests.rs index 2b1f3cc2..2549ef27 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -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 = "\