Skip to content

Commit

Permalink
fix builder definition. derp.
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed Aug 21, 2016
1 parent 4d676e9 commit 8434b82
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions text/0000-regex-1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,36 +316,36 @@ impl RegexBuilder {
pub fn build(&self) -> Result<Regex, Error>;

/// Set the case insensitive flag (i).
pub fn case_insensitive(&mut self, yes: bool);
pub fn case_insensitive(&mut self, yes: bool) -> &mut RegexBuilder;

/// Set the multi line flag (m).
pub fn multi_line(&mut self, yes: bool);
pub fn multi_line(&mut self, yes: bool) -> &mut RegexBuilder;

/// Set the dot-matches-any-character flag (s).
pub fn dot_matches_new_line(&mut self, yes: bool);
pub fn dot_matches_new_line(&mut self, yes: bool) -> &mut RegexBuilder;

/// Set the swap-greedy flag (U).
pub fn swap_greed(&mut self, yes: bool);
pub fn swap_greed(&mut self, yes: bool) -> &mut RegexBuilder;

/// Set the ignore whitespace flag (x).
pub fn ignore_whitespace(&mut self, yes: bool);
pub fn ignore_whitespace(&mut self, yes: bool) -> &mut RegexBuilder;

/// Set the Unicode flag (u).
pub fn unicode(&mut self, yes: bool);
pub fn unicode(&mut self, yes: bool) -> &mut RegexBuilder;

/// Set the approximate size limit (in bytes) of the compiled regular
/// expression.
///
/// If compiling a pattern would approximately exceed this size, then
/// compilation will fail.
pub fn size_limit(&mut self, limit: usize);
pub fn size_limit(&mut self, limit: usize) -> &mut RegexBuilder;

/// Set the approximate size limit (in bytes) of the cache used by the DFA.
///
/// This is a per thread limit. Once the DFA fills the cache, it will be
/// wiped and refilled again. If the cache is wiped too frequently, the
/// DFA will quit and fall back to another matching engine.
pub fn dfa_size_limit(&mut self, limit: usize);
pub fn dfa_size_limit(&mut self, limit: usize) -> &mut RegexBuilder;
}
```

Expand Down

0 comments on commit 8434b82

Please sign in to comment.