From 4ee50036abb7f8574b55df31cffa62719e5311e4 Mon Sep 17 00:00:00 2001 From: Maxim Zhiburt Date: Wed, 22 Jul 2020 20:59:34 +0300 Subject: [PATCH] fix doc comment in Replacer::replace_append method Example of no-op replacement can't be compiled ``` `&str` is not an iterator the trait `std::iter::Iterator` is not implemented for `&str` ``` --- src/re_unicode.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/re_unicode.rs b/src/re_unicode.rs index b746599088..685d4046de 100644 --- a/src/re_unicode.rs +++ b/src/re_unicode.rs @@ -1122,7 +1122,7 @@ pub trait Replacer { /// have a match at capture group `0`. /// /// For example, a no-op replacement would be - /// `dst.extend(caps.get(0).unwrap().as_str())`. + /// `dst.push_str(caps.get(0).unwrap().as_str())`. fn replace_append(&mut self, caps: &Captures, dst: &mut String); /// Return a fixed unchanging replacement string.