File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
18111811impl 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 {
You can’t perform that action at this time.
0 commit comments