Skip to content

Commit

Permalink
doc: fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
tgolang committed May 13, 2024
1 parent bb6f0f5 commit 22b6779
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/core/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ static ERRORED: AtomicBool = AtomicBool::new(false);
///
/// This locks stdout, not stderr, even though this prints to stderr. This
/// avoids the appearance of interleaving output when stdout and stderr both
/// correspond to a tty.)
/// correspond to a tty.
#[macro_export]
macro_rules! eprintln_locked {
($($tt:tt)*) => {{
Expand Down
2 changes: 1 addition & 1 deletion crates/regex/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ impl ConfiguredHIR {
&self.config
}

/// Return a reference to the underyling HIR.
/// Return a reference to the underlying HIR.
pub(crate) fn hir(&self) -> &Hir {
&self.hir
}
Expand Down
2 changes: 1 addition & 1 deletion crates/regex/src/literal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::{config::ConfiguredHIR, error::Error};
/// that are in turn used to build a simpler regex that is more amenable to
/// optimization.
///
/// The main idea underyling the validity of this technique is the fact
/// The main idea underlying the validity of this technique is the fact
/// that ripgrep searches individuals lines and not across lines. (Unless
/// -U/--multiline is enabled.) Namely, we can pluck literals out of the regex,
/// search for them, find the bounds of the line in which that literal occurs
Expand Down

0 comments on commit 22b6779

Please sign in to comment.