Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix committed Oct 19, 2024
1 parent f294759 commit a6bdd0b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/features/completions.zig
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ fn functionTypeCompletion(
break :blk try std.fmt.allocPrint(builder.arena, "{s}(${{1:}})", .{func_name});
},
else => {
// Atleast one non-self parameter, leave the cursor in the parentheses
// At least one non-self parameter, leave the cursor in the parentheses
if (!use_snippets) break :blk func_name;
break :blk try std.fmt.allocPrint(builder.arena, "{s}(${{1:}})", .{func_name});
},
Expand Down
12 changes: 6 additions & 6 deletions tests/lsp_features/code_actions.zig
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ test "discard capture with comment" {
\\test {
\\ if (1 == 1) |a| // a comment
\\ {}
\\ for (0..10, 0..10, 0..10) |i, j, k| // a commment
\\ for (0..10, 0..10, 0..10) |i, j, k| // a comment
\\ {}
\\}
\\
Expand All @@ -165,7 +165,7 @@ test "discard capture with comment" {
\\ {
\\ _ = a; // autofix
\\ }
\\ for (0..10, 0..10, 0..10) |i, j, k| // a commment
\\ for (0..10, 0..10, 0..10) |i, j, k| // a comment
\\ {
\\ _ = i; // autofix
\\ _ = j; // autofix
Expand All @@ -180,7 +180,7 @@ test "discard capture with comment" {
\\ // a comment
\\ {}
\\ for (0..10, 0..10, 0..10) |i, j, k|
\\ // a commment
\\ // a comment
\\ {}
\\}
\\
Expand All @@ -192,7 +192,7 @@ test "discard capture with comment" {
\\ _ = a; // autofix
\\ }
\\ for (0..10, 0..10, 0..10) |i, j, k|
\\ // a commment
\\ // a comment
\\ {
\\ _ = i; // autofix
\\ _ = j; // autofix
Expand All @@ -205,7 +205,7 @@ test "discard capture with comment" {
\\test {
\\ if (1 == 1) |a| { // a comment
\\ }
\\ for (0..10, 0..10, 0..10) |i, j, k| { // a commment
\\ for (0..10, 0..10, 0..10) |i, j, k| { // a comment
\\ }
\\}
\\
Expand All @@ -214,7 +214,7 @@ test "discard capture with comment" {
\\ if (1 == 1) |a| { // a comment
\\ _ = a; // autofix
\\ }
\\ for (0..10, 0..10, 0..10) |i, j, k| { // a commment
\\ for (0..10, 0..10, 0..10) |i, j, k| { // a comment
\\ _ = i; // autofix
\\ _ = j; // autofix
\\ _ = k; // autofix
Expand Down
2 changes: 1 addition & 1 deletion tests/lsp_features/completion.zig
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ test "generic function" {
});
}

test "recusive generic function" {
test "recursive generic function" {
try testCompletion(
\\const S = struct { alpha: u32 };
\\fn ArrayList(comptime T: type) type {
Expand Down

0 comments on commit a6bdd0b

Please sign in to comment.