aboutsummaryrefslogtreecommitdiff
path: root/src/_tutorial/chapter_4.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/_tutorial/chapter_4.rs')
-rw-r--r--src/_tutorial/chapter_4.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/_tutorial/chapter_4.rs b/src/_tutorial/chapter_4.rs
index e6a836b..328a648 100644
--- a/src/_tutorial/chapter_4.rs
+++ b/src/_tutorial/chapter_4.rs
@@ -10,9 +10,6 @@
//! All we need to do for our parser to return a different type is to change
//! the type parameter of [`PResult`] to the desired return type.
//! For example, to return a `usize`, return a `PResult<usize>`.
-//! Recall that the type parameter of the `PResult` is the input
-//! type, so even if you're returning something different, if your input
-//! is a `&str`, the type argument of `PResult` should be also.
//!
//! One winnow-native way of doing a type conversion is to use the
//! [`Parser::parse_to`] combinator
@@ -107,4 +104,4 @@ use std::str::FromStr;
pub use super::chapter_3 as previous;
pub use super::chapter_5 as next;
-pub use crate::_tutorial as table_of_content;
+pub use crate::_tutorial as table_of_contents;