From e5fdf808acf617ee1ca9ebc5eb9182e1067d379b Mon Sep 17 00:00:00 2001 From: Dion Dokter Date: Sat, 10 Jan 2026 20:29:36 +0100 Subject: [PATCH] Tiny typo --- guide/getting_started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/getting_started.md b/guide/getting_started.md index ce88c5f3..a4781ec7 100644 --- a/guide/getting_started.md +++ b/guide/getting_started.md @@ -80,7 +80,7 @@ fn parser<'src>() -> impl Parser<'src, &'src str, ()> { 2. Because large parsers can have rather unwieldy types, we save ourselves the need to declare the exact return type with Rust's `impl Trait` syntax. This says to the compiler "we don't actually care what type is returned here, but - it needs to implement the `Parser<'src, &'src, str, ()>` trait, you figure it out". Note that, unlike `dyn Trait` + it needs to implement the `Parser<'src, &'src str, ()>` trait, you figure it out". Note that, unlike `dyn Trait` syntax, `impl Trait` has no runtime cost: the compiler simply *hides* the type from you rather than performing *type erasure*, which would require performing [dynamic dispatch](https://en.wikipedia.org/wiki/Dynamic_dispatch) while your code is running.