Skip to content

Commit 830cabe

Browse files
committed
Rename lookaround to look-around
1 parent 76e11e6 commit 830cabe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

regex-syntax/src/hir/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1796,7 +1796,7 @@ impl Look {
17961796
}
17971797
}
17981798

1799-
/// Represents a general lookaround assertion.
1799+
/// Represents a general look-around assertion.
18001800
///
18011801
/// Currently, only lookbehind assertions are supported.
18021802
/// Furthermore, capture groups inside assertions are not supported.
@@ -1810,7 +1810,7 @@ pub enum LookAround {
18101810

18111811
impl LookAround {
18121812
/// Returns a reference to the inner expression that must match for this
1813-
/// lookaround assertion to hold.
1813+
/// look-around assertion to hold.
18141814
pub fn sub(&self) -> &Hir {
18151815
match self {
18161816
Self::PositiveLookBehind(sub) | Self::NegativeLookBehind(sub) => {
@@ -1828,7 +1828,7 @@ impl LookAround {
18281828
}
18291829
}
18301830

1831-
/// Returns a new lookaround of the same kind, but with its
1831+
/// Returns a new look-around of the same kind, but with its
18321832
/// sub-expression replaced with the one given.
18331833
pub fn with(&self, sub: Hir) -> LookAround {
18341834
match self {

0 commit comments

Comments
 (0)