aboutsummaryrefslogtreecommitdiff
path: root/src/router.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/router.zig')
-rw-r--r--src/router.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/router.zig b/src/router.zig
index 2ae4b98fb..b482cf18c 100644
--- a/src/router.zig
+++ b/src/router.zig
@@ -213,7 +213,7 @@ pub const Routes = struct {
}
fn match(this: *Routes, allocator: std.mem.Allocator, pathname_: string, comptime MatchContext: type, ctx: MatchContext) ?*Route {
- var pathname = std.mem.trimLeft(u8, pathname_, "/");
+ const pathname = std.mem.trimLeft(u8, pathname_, "/");
if (pathname.len == 0) {
return this.index;