Merge pull request #1899 from Andrew15-5/fix-router-macro-typo

chore(docs): fixed typo in router-macro
This commit is contained in:
Evan Almloff 2024-02-05 09:27:40 -06:00 committed by GitHub
commit b1f617acd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -162,7 +162,7 @@ mod segment;
///
/// # `#[layout(component)]`
///
/// The `#[layout]` attribute is used to define a layout. It takes 1 parameters:
/// The `#[layout]` attribute is used to define a layout. It takes 1 parameter:
/// - `component`: The component to render when the route is matched. If not specified, the name of the variant is used
///
/// The layout component allows you to wrap all children of the layout in a component. The child routes are rendered in the Outlet of the layout component. The layout component must take all dynamic parameters of the nests it is nested in.