Skip to content

Commit 341e7bc

Browse files
author
Jorge Aparicio
committed
libregex: fix fallout in doc tests
1 parent 61ba334 commit 341e7bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libregex/re.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,11 @@ impl Regex {
429429
///
430430
/// ```rust
431431
/// # #![feature(phase)]
432+
/// # #![feature(unboxed_closures)]
432433
/// # extern crate regex; #[phase(plugin)] extern crate regex_macros;
433434
/// # use regex::Captures; fn main() {
434435
/// let re = regex!(r"([^,\s]+),\s+(\S+)");
435-
/// let result = re.replace("Springsteen, Bruce", |caps: &Captures| {
436+
/// let result = re.replace("Springsteen, Bruce", |&: caps: &Captures| {
436437
/// format!("{} {}", caps.at(2), caps.at(1))
437438
/// });
438439
/// assert_eq!(result.as_slice(), "Bruce Springsteen");

0 commit comments

Comments
 (0)