Skip to content

Commit

Permalink
get_param -> param (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
YBoy-git authored Feb 10, 2025
1 parent d427b43 commit 876da17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/book/concepts/router.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Router::with_path("articles/{id}").get(show_article);
Router::with_path("files/{**rest_path}").get(serve_file)
```

In `Handler`, it can be obtained through the `get_param` function of the `Request` object:
In `Handler`, it can be obtained through the `param` function of the `Request` object:

```rust
#[handler]
Expand Down

0 comments on commit 876da17

Please sign in to comment.