From b6627e74b4086fa87575f9c7cd9cd4555ecdacec Mon Sep 17 00:00:00 2001 From: Arvid Norlander Date: Mon, 24 Jun 2024 22:59:04 +0200 Subject: [PATCH] docs(tut): Add cross ref to chapter 6 This helps when users try to use the docs as a reference to solve their issue at hand (as opposed to reading in order and remembering everything). --- src/_tutorial/chapter_7.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/_tutorial/chapter_7.rs b/src/_tutorial/chapter_7.rs index 58ccc4d2..30896f7d 100644 --- a/src/_tutorial/chapter_7.rs +++ b/src/_tutorial/chapter_7.rs @@ -567,6 +567,9 @@ //! - Correctly reporting columns with unicode //! - Conforming to a specific layout //! +//! As a reminder [`chapter_6`] demonstrated how to convert a [`PResult`] to a standard +//! Rust [`Result`], and this section assumes that has been done. +//! //! For example, to get rustc-like errors with [`annotate-snippets`](https://crates.io/crates/annotate-snippets): //! ```rust //! # use winnow::prelude::*; @@ -712,6 +715,7 @@ #![allow(unused_imports)] use super::chapter_1; use super::chapter_3; +use super::chapter_6; use crate::combinator::alt; use crate::combinator::cut_err; use crate::combinator::fail;