mirror of
https://github.com/zoriya/zig-wayland.git
synced 2025-12-05 22:56:13 +00:00
Use const for const var
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user