use const for variables that are never modified
This commit is contained in:
parent
ef9bdb1382
commit
669d4f7337
4 changed files with 6 additions and 6 deletions
|
|
@ -15,7 +15,7 @@ pub fn main() void {
|
|||
const lang_chars = [_]u8{ 26, 9, 7, 42 };
|
||||
|
||||
for (lang_chars) |c| {
|
||||
var real_char: u8 = switch (c) {
|
||||
const real_char: u8 = switch (c) {
|
||||
1 => 'A',
|
||||
2 => 'B',
|
||||
3 => 'C',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue