Skip to content

Commit

Permalink
Update the required bounds of %parse-param in the book
Browse files Browse the repository at this point in the history
  • Loading branch information
ratmice committed Oct 8, 2024
1 parent 0ae22f0 commit 39bd587
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/src/actioncode.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ make use of the following:

A single extra parameter can be passed to action functions if the `%parse-param
<var>: <type>` declaration is used. The variable `<var>` is then visible in all
action code. `<type>` must implement the [`Copy`
trait](https://doc.rust-lang.org/std/marker/trait.Copy.html) (note that `&`
references implement `Copy`).
action code. `<type>` must implement the [`Clone`
trait](https://doc.rust-lang.org/stable/std/clone/trait.Clone.html) (note that `Copy`
bounds imply `Clone`, and `&` references implement `Copy`).

For example if a grammar has a declaration:

Expand Down

0 comments on commit 39bd587

Please sign in to comment.