We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da922ff commit da31289Copy full SHA for da31289
guide/getting_started.md
@@ -80,7 +80,7 @@ fn parser<'src>() -> impl Parser<'src, &'src str, ()> {
80
81
2. Because large parsers can have rather unwieldy types, we save ourselves the need to declare the exact return type
82
with Rust's `impl Trait` syntax. This says to the compiler "we don't actually care what type is returned here, but
83
- 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`
84
syntax, `impl Trait` has no runtime cost: the compiler simply *hides* the type from you rather than performing
85
*type erasure*, which would require performing [dynamic dispatch](https://en.wikipedia.org/wiki/Dynamic_dispatch)
86
while your code is running.
0 commit comments