diff --git a/Userland/Libraries/LibRegex/RegexDebug.h b/Userland/Libraries/LibRegex/RegexDebug.h index 26deddd0eaa..b080ad1ab30 100644 --- a/Userland/Libraries/LibRegex/RegexDebug.h +++ b/Userland/Libraries/LibRegex/RegexDebug.h @@ -55,7 +55,7 @@ public: } template - void print_bytecode(Regex& regex) const + void print_bytecode(const Regex& regex) const { MatchState state; auto& bytecode = regex.parser_result.bytecode;