Skip to content

Commit 1b2c1dc

Browse files
authored
doc: fix typos
PR #1605
1 parent b1e3de2 commit 1b2c1dc

File tree

11 files changed

+14
-14
lines changed

11 files changed

+14
-14
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ Bug fixes:
572572

573573
0.8.0 (2018-02-11)
574574
==================
575-
This is a new minor version releae of ripgrep that satisfies several popular
575+
This is a new minor version release of ripgrep that satisfies several popular
576576
feature requests (config files, search compressed files, true colors), fixes
577577
many bugs and improves the quality of life for ripgrep maintainers. This
578578
release also includes greatly improved documentation in the form of a

FAQ.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ How do I search compressed files?
139139

140140
ripgrep's `-z/--search-zip` flag will cause it to search compressed files
141141
automatically. Currently, this supports gzip, bzip2, xz, lzma, lz4, Brotli and
142-
Zstd. Each of these requires requires the corresponding `gzip`, `bzip2`, `xz`,
142+
Zstd. Each of these requires the corresponding `gzip`, `bzip2`, `xz`,
143143
`lz4`, `brotli` and `zstd` binaries to be installed on your system. (That is,
144144
ripgrep does decompression by shelling out to another process.)
145145

@@ -824,7 +824,7 @@ rg foo --files-with-matches | xargs sed -i 's/foo/bar/g'
824824
will replace all instances of 'foo' with 'bar' in the files in which
825825
ripgrep finds the foo pattern. The `-i` flag to sed indicates that you are
826826
editing files in place, and `s/foo/bar/g` says that you are performing a
827-
**s**ubstitution of the pattren `foo` for `bar`, and that you are doing this
827+
**s**ubstitution of the pattern `foo` for `bar`, and that you are doing this
828828
substitution **g**lobally (all occurrences of the pattern in each file).
829829

830830
Note: the above command assumes that you are using GNU sed. If you are using

crates/cli/src/human.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use regex::Regex;
77

88
/// An error that occurs when parsing a human readable size description.
99
///
10-
/// This error provides a end user friendly message describing why the
10+
/// This error provides an end user friendly message describing why the
1111
/// description coudln't be parsed and what the expected format is.
1212
#[derive(Clone, Debug, Eq, PartialEq)]
1313
pub struct ParseSizeError {

crates/core/app.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ impl RGArg {
461461
self
462462
}
463463

464-
/// Permit this flag to have values that begin with a hypen.
464+
/// Permit this flag to have values that begin with a hyphen.
465465
///
466466
/// This panics if this arg is not a flag.
467467
fn allow_leading_hyphen(mut self) -> RGArg {
@@ -2577,7 +2577,7 @@ flag nor any other ripgrep flag will modify your files.
25772577
25782578
Capture group indices (e.g., $5) and names (e.g., $foo) are supported in the
25792579
replacement string. Capture group indices are numbered based on the position of
2580-
the opening paranthesis of the group, where the leftmost such group is $1. The
2580+
the opening parenthesis of the group, where the leftmost such group is $1. The
25812581
special $0 group corresponds to the entire match.
25822582
25832583
In shells such as Bash and zsh, you should wrap the pattern in single quotes

crates/core/args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ impl ArgMatches {
15411541
///
15421542
/// Generally, this is only enabled when explicitly requested by in the
15431543
/// command line arguments via the --stats flag, but this can also be
1544-
/// enabled implicity via the output format, e.g., for JSON Lines.
1544+
/// enabled implicitly via the output format, e.g., for JSON Lines.
15451545
fn stats(&self) -> bool {
15461546
self.output_kind() == OutputKind::JSON || self.is_present("stats")
15471547
}

crates/globset/src/glob.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ impl Glob {
367367
}
368368
}
369369

370-
/// This is like `ext`, but returns an extension even if it isn't sufficent
370+
/// This is like `ext`, but returns an extension even if it isn't sufficient
371371
/// to imply a match. Namely, if an extension is returned, then it is
372372
/// necessary but not sufficient for a match.
373373
fn required_ext(&self) -> Option<String> {

crates/globset/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ impl GlobSet {
352352
/// Adds the sequence number of every glob pattern that matches the given
353353
/// path to the vec given.
354354
///
355-
/// `into` is is cleared before matching begins, and contains the set of
355+
/// `into` is cleared before matching begins, and contains the set of
356356
/// sequence numbers (in ascending order) after matching ends. If no globs
357357
/// were matched, then `into` will be empty.
358358
pub fn matches_into<P: AsRef<Path>>(
@@ -366,7 +366,7 @@ impl GlobSet {
366366
/// Adds the sequence number of every glob pattern that matches the given
367367
/// path to the vec given.
368368
///
369-
/// `into` is is cleared before matching begins, and contains the set of
369+
/// `into` is cleared before matching begins, and contains the set of
370370
/// sequence numbers (in ascending order) after matching ends. If no globs
371371
/// were matched, then `into` will be empty.
372372
///

crates/ignore/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl<'a> Glob<'a> {
134134
Glob(GlobInner::UnmatchedIgnore)
135135
}
136136

137-
/// Return the file type defintion that matched, if one exists. A file type
137+
/// Return the file type definition that matched, if one exists. A file type
138138
/// definition always exists when a specific definition matches a file
139139
/// path.
140140
pub fn file_type_def(&self) -> Option<&FileTypeDef> {

crates/matcher/src/interpolate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub fn interpolate<A, N>(
5959
/// `CaptureRef` represents a reference to a capture group inside some text.
6060
/// The reference is either a capture group name or a number.
6161
///
62-
/// It is also tagged with the position in the text immediately proceding the
62+
/// It is also tagged with the position in the text immediately proceeding the
6363
/// capture reference.
6464
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
6565
struct CaptureRef<'a> {

crates/regex/src/literal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl LiteralSets {
116116
} else if lit.is_empty() {
117117
// If we're here, then we have no LCP. No LCS. And no detected
118118
// inner required literals. In theory this shouldn't happen, but
119-
// the inner literal detector isn't as nice as we hope and doens't
119+
// the inner literal detector isn't as nice as we hope and doesn't
120120
// actually support returning a set of alternating required
121121
// literals. (Instead, it only returns a set where EVERY literal
122122
// in it is required. It cannot currently express "either P or Q

0 commit comments

Comments
 (0)