Skip to content

Commit 8434b82

Browse files
committed
fix builder definition. derp.
1 parent 4d676e9 commit 8434b82

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

text/0000-regex-1.0.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -316,36 +316,36 @@ impl RegexBuilder {
316316
pub fn build(&self) -> Result<Regex, Error>;
317317

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

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

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

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

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

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

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

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

0 commit comments

Comments
 (0)