Skip to content

Commit 8b05ded

Browse files
committed
chore: fix typos
1 parent fb44b3e commit 8b05ded

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

cmd/templ/lspcmd/lsp_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ func TestReferences(t *testing.T) {
356356
assert: func(t *testing.T, actual []protocol.Location) (msg string, ok bool) {
357357
expectedReference := []protocol.Location{
358358
{
359-
// This is the useage of the templ function in the main.go file.
359+
// This is the usage of the templ function in the main.go file.
360360
URI: uri.URI("file://" + appDir + "/main.go"),
361361
Range: protocol.Range{
362362
Start: protocol.Position{
@@ -384,7 +384,7 @@ func TestReferences(t *testing.T) {
384384
assert: func(t *testing.T, actual []protocol.Location) (msg string, ok bool) {
385385
expectedReference := []protocol.Location{
386386
{
387-
// This is the useage of the struct in the templates.templ file.
387+
// This is the usage of the struct in the templates.templ file.
388388
URI: uri.URI("file://" + appDir + "/templates.templ"),
389389
Range: protocol.Range{
390390
Start: protocol.Position{

generator/test-whitespace-around-go-keywords/render_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,32 +36,32 @@ func TestTextWhitespace(t *testing.T) {
3636
expected: WhitespaceIsConsistentInFalseIfExpected,
3737
},
3838
{
39-
name: "whitespace is consistent in a switch statment with a true case",
39+
name: "whitespace is consistent in a switch statement with a true case",
4040
input: WhitespaceIsConsistentInSwitch(1),
4141
expected: WhitespaceIsConsistentInOneSwitchExpected,
4242
},
4343
{
44-
name: "whitespace is consistent in a switch statment with a default case",
44+
name: "whitespace is consistent in a switch statement with a default case",
4545
input: WhitespaceIsConsistentInSwitch(2),
4646
expected: WhitespaceIsConsistentInDefaultSwitchExpected,
4747
},
4848
{
49-
name: "whitespace is consistent in a switch statment with no default case and no true cases",
49+
name: "whitespace is consistent in a switch statement with no default case and no true cases",
5050
input: WhitespaceIsConsistentInSwitchNoDefault(),
5151
expected: WhitespaceIsConsistentInSwitchNoDefaultExpected,
5252
},
5353
{
54-
name: "whitespace is consistent in a for statment that runs 0 times",
54+
name: "whitespace is consistent in a for statement that runs 0 times",
5555
input: WhitespaceIsConsistentInFor(0),
5656
expected: WhitespaceIsConsistentInForZeroExpected,
5757
},
5858
{
59-
name: "whitespace is consistent in a for statment that runs 1 times",
59+
name: "whitespace is consistent in a for statement that runs 1 times",
6060
input: WhitespaceIsConsistentInFor(1),
6161
expected: WhitespaceIsConsistentInForOneExpected,
6262
},
6363
{
64-
name: "whitespace is consistent in a for statment that runs 3 times",
64+
name: "whitespace is consistent in a for statement that runs 3 times",
6565
input: WhitespaceIsConsistentInFor(3),
6666
expected: WhitespaceIsConsistentInForThreeExpected,
6767
},

parser/v2/goexpression/parse_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ var templExpressionTests = []testInput{
450450
})`,
451451
},
452452
{
453-
name: "function call with slice of pointers to explictly named complex types",
453+
name: "function call with slice of pointers to explicitly named complex types",
454454
input: `tabs([]*TabData{
455455
&TabData{Name: "A"},
456456
&TabData{Name: "B"},

0 commit comments

Comments
 (0)