Skip to content

Commit

Permalink
docs(tut): Add cross ref to chapter 6
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
VorpalBlade committed Jun 24, 2024
1 parent e826529 commit b6627e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/_tutorial/chapter_7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b6627e7

Please sign in to comment.