libexpr: Fix typo in error message

Closes #523

Change-Id: Ib5705e405b74d07a8fcf0163847405e9c791c3e3
This commit is contained in:
piegames 2024-10-18 19:36:55 +02:00
parent 3ba5ef91bc
commit e2d00ac3a8

View file

@ -655,7 +655,7 @@ template<> struct BuildAST<grammar::v1::expr::uri> {
bool URLLiterals = ps.featureSettings.isEnabled(Dep::UrlLiterals); bool URLLiterals = ps.featureSettings.isEnabled(Dep::UrlLiterals);
if (!URLLiterals) if (!URLLiterals)
throw ParseError({ throw ParseError({
.msg = HintFmt("URL literals are deprecated, allow using them with --extra-deprecated-features=url-literals"), .msg = HintFmt("URL literals are deprecated, allow using them with %s", "--extra-deprecated-features url-literals"),
.pos = ps.positions[ps.at(in)] .pos = ps.positions[ps.at(in)]
}); });
s.pushExpr<ExprString>(ps.at(in), in.string()); s.pushExpr<ExprString>(ps.at(in), in.string());