diff options
| author | Josh Soref <2119212+jsoref@users.noreply.github.com> | 2021-09-24 13:39:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-24 13:39:20 -0400 |
| commit | 664941bf14cad3e62b453f83153ca4b65606707b (patch) | |
| tree | 776a9f1b32a06e6cc71be4dd77f72f80be01e1b2 /test/behavior/switch.zig | |
| parent | ef7fa76001f873824b0f64dfc2172ed2f304c348 (diff) | |
| download | zig-664941bf14cad3e62b453f83153ca4b65606707b.tar.gz zig-664941bf14cad3e62b453f83153ca4b65606707b.zip | |
Spelling corrections (#9833)
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
Diffstat (limited to 'test/behavior/switch.zig')
| -rw-r--r-- | test/behavior/switch.zig | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/behavior/switch.zig b/test/behavior/switch.zig index e512565b80..62afc74d83 100644 --- a/test/behavior/switch.zig +++ b/test/behavior/switch.zig @@ -65,18 +65,18 @@ fn nonConstSwitchOnEnum(fruit: Fruit) void { } test "switch statement" { - try nonConstSwitch(SwitchStatmentFoo.C); + try nonConstSwitch(SwitchStatementFoo.C); } -fn nonConstSwitch(foo: SwitchStatmentFoo) !void { +fn nonConstSwitch(foo: SwitchStatementFoo) !void { const val = switch (foo) { - SwitchStatmentFoo.A => @as(i32, 1), - SwitchStatmentFoo.B => 2, - SwitchStatmentFoo.C => 3, - SwitchStatmentFoo.D => 4, + SwitchStatementFoo.A => @as(i32, 1), + SwitchStatementFoo.B => 2, + SwitchStatementFoo.C => 3, + SwitchStatementFoo.D => 4, }; try expect(val == 3); } -const SwitchStatmentFoo = enum { +const SwitchStatementFoo = enum { A, B, C, |
