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 764c2fe commit 2f73b78Copy full SHA for 2f73b78
src/doc/guide-macros.md
@@ -355,6 +355,7 @@ macro_rules! biased_match_rec (
355
_ => { $err }
356
}
357
);
358
+ // Produce the requested values
359
( binds $( $bind_res:ident ),* ) => ( ($( $bind_res ),*) )
360
)
361
@@ -364,7 +365,7 @@ macro_rules! biased_match (
364
365
( $( ($e:expr) ~ ($p:pat) else $err:stmt ; )*
366
binds $bind_res:ident
367
) => (
- let ( $( $bind_res ),* ) = biased_match_rec!(
368
+ let $bind_res = biased_match_rec!(
369
$( ($e) ~ ($p) else $err ; )*
370
binds $bind_res
371
0 commit comments