Use const for const var

This commit is contained in:
2023-12-22 20:48:42 +01:00
parent 4a91d9dc7d
commit 045c1f9a4d

View File

@@ -1301,7 +1301,7 @@ fn formatCaseImpl(comptime case: Case, comptime trim: bool) type {
return;
}
var upper = case == .title;
var str = if (trim) trimPrefix(bytes) else bytes;
const str = if (trim) trimPrefix(bytes) else bytes;
for (str) |c| {
if (c == '_') {
upper = true;