Skip to content

Commit 8772aaa

Browse files
committed
docs(router): Update options-related documentation
1 parent e97df6b commit 8772aaa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/router.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ impl Router {
864864
/// }
865865
/// }
866866
///
867-
/// Router::new().attach_async(Clicker::default());
867+
/// // Router::new().attach_async(Clicker::default());
868868
/// ```
869869
pub fn attach_async(
870870
&mut self,
@@ -1004,7 +1004,7 @@ impl Router {
10041004
/// use windmark::router_option::RouterOption;
10051005
///
10061006
/// windmark::router::Router::new()
1007-
/// .add_options(&[RouterOption::TrimTrailingSlashes]);
1007+
/// .add_options(&[RouterOption::RemoveExtraTrailingSlash]);
10081008
/// ```
10091009
pub fn add_options(&mut self, options: &[RouterOption]) -> &mut Self {
10101010
for option in options {
@@ -1022,7 +1022,7 @@ impl Router {
10221022
/// use windmark::router_option::RouterOption;
10231023
///
10241024
/// windmark::router::Router::new()
1025-
/// .toggle_options(&[RouterOption::TrimTrailingSlashes]);
1025+
/// .toggle_options(&[RouterOption::RemoveExtraTrailingSlash]);
10261026
/// ```
10271027
pub fn toggle_options(&mut self, options: &[RouterOption]) -> &mut Self {
10281028
for option in options {
@@ -1044,7 +1044,7 @@ impl Router {
10441044
/// use windmark::router_option::RouterOption;
10451045
///
10461046
/// windmark::router::Router::new()
1047-
/// .remove_options(&[RouterOption::TrimTrailingSlashes]);
1047+
/// .remove_options(&[RouterOption::RemoveExtraTrailingSlash]);
10481048
/// ```
10491049
pub fn remove_options(&mut self, options: &[RouterOption]) -> &mut Self {
10501050
for option in options {

0 commit comments

Comments
 (0)