From 22b677900f7ee74dcc0ec6791805120976d86168 Mon Sep 17 00:00:00 2001 From: tgolang <154592711+tgolang@users.noreply.github.com> Date: Mon, 13 May 2024 19:44:51 +0800 Subject: [PATCH] doc: fix some typos PR #2754 --- crates/core/messages.rs | 2 +- crates/regex/src/config.rs | 2 +- crates/regex/src/literal.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/core/messages.rs b/crates/core/messages.rs index 2f723509..ba8b9adc 100644 --- a/crates/core/messages.rs +++ b/crates/core/messages.rs @@ -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)*) => {{ diff --git a/crates/regex/src/config.rs b/crates/regex/src/config.rs index 7ebe035d..24bca70e 100644 --- a/crates/regex/src/config.rs +++ b/crates/regex/src/config.rs @@ -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 } diff --git a/crates/regex/src/literal.rs b/crates/regex/src/literal.rs index e2f158b6..a45f749e 100644 --- a/crates/regex/src/literal.rs +++ b/crates/regex/src/literal.rs @@ -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