From a84abfb0655c9a9021dc75425e871d9b1cb719bc Mon Sep 17 00:00:00 2001 From: Johann Hofmann Date: Thu, 3 Sep 2015 13:29:55 +0200 Subject: [PATCH] Update inline tokenize example `tokenize_to` was at some point changed to move the `sink` value instead of taking a mut ref, but the inline rustdoc example was not updated, causing lots of confusion --- src/driver.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver.rs b/src/driver.rs index 0b8cdb70..efc6863a 100644 --- a/src/driver.rs +++ b/src/driver.rs @@ -29,7 +29,7 @@ pub fn one_input(x: T) -> option::IntoIter { /// /// ```ignore /// let sink = MySink; -/// tokenize_to(&mut sink, one_input(my_str), Default::default()); +/// tokenize_to(sink, one_input(my_str), Default::default()); /// ``` pub fn tokenize_to(sink: Sink, input: It, opts: TokenizerOpts) -> Sink where Sink: TokenSink,