Skip to content

Commit

Permalink
Update 17_nested_routing.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj authored Feb 6, 2025
1 parent c62fe2a commit 2a7dcb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/router/17_nested_routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ I actually need to add a fallback route

```rust
<Routes>
<ParentRoute path="/users" view=Users>
<Route path=":id" view=UserProfile/>
<Route path="" view=NoUser/>
<ParentRoute path=path!("/users") view=Users>
<Route path=path!(":id") view=UserProfile/>
<Route path=path!("") view=NoUser/>
</ParentRoute>
</Routes>
```
Expand Down

0 comments on commit 2a7dcb9

Please sign in to comment.