1
0
Эх сурвалжийг харах

fix unrelated to dioxus-router

marc2332 1 жил өмнө
parent
commit
97478bcb13

+ 1 - 1
packages/core-macro/src/lib.rs

@@ -167,7 +167,7 @@ pub(crate) const COMPONENT_ARG_CASE_CHECK_OFF: &str = "no_case_check";
 ///     #[warn(non_snake_case)]
 ///     #[inline(always)]
 ///     fn __dx_inner_comp(props: GreetPersonProps>e) -> Element {
-///         let GreetPersonProps { person } = &cx.props;
+///         let GreetPersonProps { person } = props;
 ///         {
 ///             rsx! { "hello, {person}" }
 ///         }