Skip to content

Commit

Permalink
Auto merge of rust-lang#381 - michaelsproul:build-doc-fix, r=BurntSushi
Browse files Browse the repository at this point in the history
Fix docs for renaming of `RegexBuilder::build`

There were some references to `compile` left over after the rename from `compile` to `build`.
  • Loading branch information
bors committed Jun 5, 2017
2 parents 23aa434 + bf37eb4 commit 2f18730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/re_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl RegexBuilder {
/// Create a new regular expression builder with the given pattern.
///
/// If the pattern is invalid, then an error will be returned when
/// `compile` is called.
/// `build` is called.
pub fn new(pattern: &str) -> RegexBuilder {
let mut builder = RegexBuilder(RegexOptions::default());
builder.0.pats.push(pattern.to_owned());
Expand Down Expand Up @@ -171,7 +171,7 @@ impl RegexSetBuilder {
/// Create a new regular expression builder with the given pattern.
///
/// If the pattern is invalid, then an error will be returned when
/// `compile` is called.
/// `build` is called.
pub fn new<I, S>(patterns: I) -> RegexSetBuilder
where S: AsRef<str>, I: IntoIterator<Item=S> {
let mut builder = RegexSetBuilder(RegexOptions::default());
Expand Down

0 comments on commit 2f18730

Please sign in to comment.