Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheemdev committed Feb 27, 2024
1 parent 495eb1f commit b2cb4ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl<T> Router<T> {
/// # fn main() -> Result<(), Box<dyn std::error::Error>> {
/// let mut router = Router::new();
/// router.insert("/home", "Welcome!")?;
/// router.insert("/users/:id", "A User")?;
/// router.insert("/users/{id}", "A User")?;
/// # Ok(())
/// # }
/// ```
Expand Down
2 changes: 1 addition & 1 deletion src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::mem;
pub(crate) enum NodeType {
/// The root path
Root,
/// A route parameter, ex: `/:id`.
/// A route parameter, ex: `/{id}`.
Param,
/// A catchall parameter, ex: `/*file`
CatchAll,
Expand Down

0 comments on commit b2cb4ac

Please sign in to comment.