Skip to content

Commit

Permalink
chore: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h committed Jan 6, 2025
1 parent fb44b3e commit 8b05ded
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions cmd/templ/lspcmd/lsp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ func TestReferences(t *testing.T) {
assert: func(t *testing.T, actual []protocol.Location) (msg string, ok bool) {
expectedReference := []protocol.Location{
{
// This is the useage of the templ function in the main.go file.
// This is the usage of the templ function in the main.go file.
URI: uri.URI("file://" + appDir + "/main.go"),
Range: protocol.Range{
Start: protocol.Position{
Expand Down Expand Up @@ -384,7 +384,7 @@ func TestReferences(t *testing.T) {
assert: func(t *testing.T, actual []protocol.Location) (msg string, ok bool) {
expectedReference := []protocol.Location{
{
// This is the useage of the struct in the templates.templ file.
// This is the usage of the struct in the templates.templ file.
URI: uri.URI("file://" + appDir + "/templates.templ"),
Range: protocol.Range{
Start: protocol.Position{
Expand Down
12 changes: 6 additions & 6 deletions generator/test-whitespace-around-go-keywords/render_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,32 +36,32 @@ func TestTextWhitespace(t *testing.T) {
expected: WhitespaceIsConsistentInFalseIfExpected,
},
{
name: "whitespace is consistent in a switch statment with a true case",
name: "whitespace is consistent in a switch statement with a true case",
input: WhitespaceIsConsistentInSwitch(1),
expected: WhitespaceIsConsistentInOneSwitchExpected,
},
{
name: "whitespace is consistent in a switch statment with a default case",
name: "whitespace is consistent in a switch statement with a default case",
input: WhitespaceIsConsistentInSwitch(2),
expected: WhitespaceIsConsistentInDefaultSwitchExpected,
},
{
name: "whitespace is consistent in a switch statment with no default case and no true cases",
name: "whitespace is consistent in a switch statement with no default case and no true cases",
input: WhitespaceIsConsistentInSwitchNoDefault(),
expected: WhitespaceIsConsistentInSwitchNoDefaultExpected,
},
{
name: "whitespace is consistent in a for statment that runs 0 times",
name: "whitespace is consistent in a for statement that runs 0 times",
input: WhitespaceIsConsistentInFor(0),
expected: WhitespaceIsConsistentInForZeroExpected,
},
{
name: "whitespace is consistent in a for statment that runs 1 times",
name: "whitespace is consistent in a for statement that runs 1 times",
input: WhitespaceIsConsistentInFor(1),
expected: WhitespaceIsConsistentInForOneExpected,
},
{
name: "whitespace is consistent in a for statment that runs 3 times",
name: "whitespace is consistent in a for statement that runs 3 times",
input: WhitespaceIsConsistentInFor(3),
expected: WhitespaceIsConsistentInForThreeExpected,
},
Expand Down
2 changes: 1 addition & 1 deletion parser/v2/goexpression/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ var templExpressionTests = []testInput{
})`,
},
{
name: "function call with slice of pointers to explictly named complex types",
name: "function call with slice of pointers to explicitly named complex types",
input: `tabs([]*TabData{
&TabData{Name: "A"},
&TabData{Name: "B"},
Expand Down

0 comments on commit 8b05ded

Please sign in to comment.