From df311c1d20ea8680b9852e73658fd400ac76513f Mon Sep 17 00:00:00 2001 From: Ed Page Date: Sat, 24 Feb 2024 20:38:48 -0600 Subject: [PATCH] docs(tutorial): Be explicit on what Accumulate is --- src/_tutorial/chapter_5.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_tutorial/chapter_5.rs b/src/_tutorial/chapter_5.rs index 8aa719b9..9f85e09f 100644 --- a/src/_tutorial/chapter_5.rs +++ b/src/_tutorial/chapter_5.rs @@ -200,7 +200,7 @@ //! ``` //! //! If you look closely at [`repeat`], it isn't collecting directly into a [`Vec`] but -//! [`Accumulate`] to gather the results. This lets us make more complex parsers than we did in +//! anything that implements the [`Accumulate`] trait to gather the results. This lets us make more complex parsers than we did in //! [`chapter_2`] by accumulating the results into a `()` and [`recognize`][Parser::recognize]-ing the captured input: //! ```rust //! # use winnow::prelude::*;