Explorar o código

fix a tiny typo in the Routable macro docs: the route attribute only takes 2 parameters, not three

ealmloff hai 1 ano
pai
achega
87eb9744e0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/router-macro/src/lib.rs

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

@@ -84,7 +84,7 @@ mod segment;
 ///
 /// # `#[route("path", component)]`
 ///
-/// The `#[route]` attribute is used to define a route. It takes up to 3 parameters:
+/// The `#[route]` attribute is used to define a route. It takes up to 2 parameters:
 /// - `path`: The path to the enum variant (relative to the parent nest)
 /// - (optional) `component`: The component to render when the route is matched. If not specified, the name of the variant is used
 ///