diff --git a/assets/trace.svg b/assets/trace.svg index ffc3df75..7fcbbd22 100644 --- a/assets/trace.svg +++ b/assets/trace.svg @@ -68,7 +68,7 @@
-
$ ./string
+
$ ./string '"abc"'
> delimited                                         | "\"abc\""
  > '"'                                              | "\"abc\""
  < '"'                                              | +1
diff --git a/src/_tutorial/chapter_8.rs b/src/_tutorial/chapter_8.rs
index d594fc45..719e0d5b 100644
--- a/src/_tutorial/chapter_8.rs
+++ b/src/_tutorial/chapter_8.rs
@@ -1,8 +1,9 @@
 //! # Chapter 8: Debugging
 //!
 //! When things inevitably go wrong, you can introspect the parsing state by running your test case
-//! with `--features winnow/debug`:
+//! with `--features winnow/debug`.
 //!
+//! For example, the trace output of an [escaped string parser][crate::_topic::language#escaped-strings]:
 //! ![Trace output from string example](https://raw.githubusercontent.com/winnow-rs/winnow/main/assets/trace.svg "Example output")
 //!
 //! You can extend your own parsers to show up by wrapping their body with
diff --git a/src/combinator/debug/mod.rs b/src/combinator/debug/mod.rs
index 0b5db5ec..73741d7f 100644
--- a/src/combinator/debug/mod.rs
+++ b/src/combinator/debug/mod.rs
@@ -92,5 +92,5 @@ fn example() {
             .with_current_dir(current_dir)
             .with_env("CLICOLOR_FORCE", "1"),
     )
-    .test("assets/trace.svg", [cmd.as_str()]);
+    .test("assets/trace.svg", [format!(r#"{cmd} '"abc"'"#).as_str()]);
 }