Skip to content

Commit

Permalink
document valid parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheemdev committed Feb 27, 2024
1 parent 2970cff commit 495eb1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ pub enum InsertError {
with: String,
},
/// Only one parameter per route segment is allowed.
///
/// Prefixes are allowed before a parmeter, but not after it. For example,
/// `/foo-{bar}` is a valid route, but `/{bar}-foo` is not.
InvalidParam,
/// Parameters must be registered with a valid name.
InvalidParamName,
Expand Down

0 comments on commit 495eb1f

Please sign in to comment.