Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion guide/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down