File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ impl RegexBuilder {
59
59
/// Create a new regular expression builder with the given pattern.
60
60
///
61
61
/// If the pattern is invalid, then an error will be returned when
62
- /// `compile ` is called.
62
+ /// `build ` is called.
63
63
pub fn new( pattern: & str ) -> RegexBuilder {
64
64
let mut builder = RegexBuilder ( RegexOptions :: default ( ) ) ;
65
65
builder. 0 . pats. push( pattern. to_owned( ) ) ;
@@ -171,7 +171,7 @@ impl RegexSetBuilder {
171
171
/// Create a new regular expression builder with the given pattern.
172
172
///
173
173
/// If the pattern is invalid, then an error will be returned when
174
- /// `compile ` is called.
174
+ /// `build ` is called.
175
175
pub fn new<I , S >( patterns: I ) -> RegexSetBuilder
176
176
where S : AsRef <str >, I : IntoIterator <Item =S > {
177
177
let mut builder = RegexSetBuilder ( RegexOptions :: default ( ) ) ;
You can’t perform that action at this time.
0 commit comments