diff options
| author | Fuwn <[email protected]> | 2025-07-08 05:42:17 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-07-08 05:42:17 +0000 |
| commit | 55a9573497594f444e90ca9c90bcc56aa3583837 (patch) | |
| tree | e8a5b8ce1b7f9345c3d7ddbbf724c933e31820c5 /src | |
| parent | feat(router): Add case-insensitive route matching option (diff) | |
| download | windmark-55a9573497594f444e90ca9c90bcc56aa3583837.tar.xz windmark-55a9573497594f444e90ca9c90bcc56aa3583837.zip | |
docs(router): Update options-related documentation
Diffstat (limited to 'src')
| -rw-r--r-- | src/router.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/router.rs b/src/router.rs index 81eb6c4..e55a0f9 100644 --- a/src/router.rs +++ b/src/router.rs @@ -864,7 +864,7 @@ impl Router { /// } /// } /// - /// Router::new().attach_async(Clicker::default()); + /// // Router::new().attach_async(Clicker::default()); /// ``` pub fn attach_async( &mut self, @@ -1004,7 +1004,7 @@ impl Router { /// use windmark::router_option::RouterOption; /// /// windmark::router::Router::new() - /// .add_options(&[RouterOption::TrimTrailingSlashes]); + /// .add_options(&[RouterOption::RemoveExtraTrailingSlash]); /// ``` pub fn add_options(&mut self, options: &[RouterOption]) -> &mut Self { for option in options { @@ -1022,7 +1022,7 @@ impl Router { /// use windmark::router_option::RouterOption; /// /// windmark::router::Router::new() - /// .toggle_options(&[RouterOption::TrimTrailingSlashes]); + /// .toggle_options(&[RouterOption::RemoveExtraTrailingSlash]); /// ``` pub fn toggle_options(&mut self, options: &[RouterOption]) -> &mut Self { for option in options { @@ -1044,7 +1044,7 @@ impl Router { /// use windmark::router_option::RouterOption; /// /// windmark::router::Router::new() - /// .remove_options(&[RouterOption::TrimTrailingSlashes]); + /// .remove_options(&[RouterOption::RemoveExtraTrailingSlash]); /// ``` pub fn remove_options(&mut self, options: &[RouterOption]) -> &mut Self { for option in options { |