Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

Commit

Permalink
correct some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Luiggi33 committed Aug 26, 2024
1 parent 88187ca commit c2bd1d2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/provider/node_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type nodeDataSourceModel struct {
UpdatedAt types.String `tfsdk:"updated_at"`
}

// NewUserDataSource is a helper function to simplify the provider implementation.
// NewNodeDataSource is a helper function to simplify the provider implementation.
func NewNodeDataSource() datasource.DataSource {
return &nodeDataSource{}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/nodes_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func (d *nodesDataSource) Read(ctx context.Context, req datasource.ReadRequest,
return
}

// sub optimal, but at least somewhat more efficient
// suboptimal, but at least somewhat more efficient
if state.LocationID.IsNull() {
state.Nodes = make([]Node, 0, len(nodes))
} else {
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/users_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type usersDataSourceModel struct {
Users []User `tfsdk:"users"`
}

// Users schema data.
// User schema data.
type User struct {
ID types.Int32 `tfsdk:"id"`
ExternalID types.String `tfsdk:"external_id"`
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

// Run "go generate" to format example terraform files and generate the docs for the registry/website

// If you do not have terraform installed, you can remove the formatting command, but its suggested to
// If you do not have Terraform installed, you can remove the formatting command, but its suggested to
// ensure the documentation is formatted properly.
//go:generate terraform fmt -recursive ./examples/

Expand Down

0 comments on commit c2bd1d2

Please sign in to comment.