diff options
| author | lording <mathias.berthonneau@gmail.com> | 2023-06-22 09:41:41 +0000 |
|---|---|---|
| committer | lording <mathias.berthonneau@gmail.com> | 2023-06-22 09:41:41 +0000 |
| commit | d2d3dfa277e7d2a22ebbaf9b47316363035ed500 (patch) | |
| tree | 95b679455dcbb501f0a65d76fe7bc2b73a1ee32a /exercises/031_switch2.zig | |
| parent | f09a87c348bafb134e3f5eca0ef654cc2a20ceef (diff) | |
var to const when posssible
Diffstat (limited to 'exercises/031_switch2.zig')
| -rw-r--r-- | exercises/031_switch2.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/031_switch2.zig b/exercises/031_switch2.zig index d8af6e6..cf5b5a5 100644 --- a/exercises/031_switch2.zig +++ b/exercises/031_switch2.zig @@ -2,7 +2,7 @@ // What's really nice is that you can use a switch statement as an // expression to return a value. // -// var a = switch (x) { +// const a = switch (x) { // 1 => 9, // 2 => 16, // 3 => 7, |
