From 39bd58708bba3f185c0d4608bdf3715bb983f497 Mon Sep 17 00:00:00 2001 From: matt rice Date: Tue, 8 Oct 2024 07:17:27 -0700 Subject: [PATCH] Update the required bounds of `%parse-param` in the book --- doc/src/actioncode.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/src/actioncode.md b/doc/src/actioncode.md index 136472f10..61dce026f 100644 --- a/doc/src/actioncode.md +++ b/doc/src/actioncode.md @@ -51,9 +51,9 @@ make use of the following: A single extra parameter can be passed to action functions if the `%parse-param : ` declaration is used. The variable `` is then visible in all -action code. `` must implement the [`Copy` -trait](https://doc.rust-lang.org/std/marker/trait.Copy.html) (note that `&` -references implement `Copy`). +action code. `` 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: