Skip to content

Commit 2f18730

Browse files
committed
Auto merge of #381 - michaelsproul:build-doc-fix, r=BurntSushi
Fix docs for renaming of `RegexBuilder::build` There were some references to `compile` left over after the rename from `compile` to `build`.
2 parents 23aa434 + bf37eb4 commit 2f18730

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/re_builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl RegexBuilder {
5959
/// Create a new regular expression builder with the given pattern.
6060
///
6161
/// If the pattern is invalid, then an error will be returned when
62-
/// `compile` is called.
62+
/// `build` is called.
6363
pub fn new(pattern: &str) -> RegexBuilder {
6464
let mut builder = RegexBuilder(RegexOptions::default());
6565
builder.0.pats.push(pattern.to_owned());
@@ -171,7 +171,7 @@ impl RegexSetBuilder {
171171
/// Create a new regular expression builder with the given pattern.
172172
///
173173
/// If the pattern is invalid, then an error will be returned when
174-
/// `compile` is called.
174+
/// `build` is called.
175175
pub fn new<I, S>(patterns: I) -> RegexSetBuilder
176176
where S: AsRef<str>, I: IntoIterator<Item=S> {
177177
let mut builder = RegexSetBuilder(RegexOptions::default());

0 commit comments

Comments
 (0)