mirror of
https://github.com/zoriya/zig-wayland.git
synced 2025-12-06 07:06:12 +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;
|
return;
|
||||||
}
|
}
|
||||||
var upper = case == .title;
|
var upper = case == .title;
|
||||||
var str = if (trim) trimPrefix(bytes) else bytes;
|
const str = if (trim) trimPrefix(bytes) else bytes;
|
||||||
for (str) |c| {
|
for (str) |c| {
|
||||||
if (c == '_') {
|
if (c == '_') {
|
||||||
upper = true;
|
upper = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user