Skip to content

Commit 1e32ae2

Browse files
jdowningnfagerlund
authored andcommitted
grammatical updates to comments and docs (hashicorp#20195)
1 parent 42305e6 commit 1e32ae2

10 files changed

Lines changed: 10 additions & 10 deletions

File tree

backend/remote-state/s3/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func TestRemoteClient_stateChecksum(t *testing.T) {
226226
}
227227
client1 := s1.(*remote.State).Client
228228

229-
// create a old and new state version to persist
229+
// create an old and new state version to persist
230230
s := state.TestStateInitial()
231231
sf := &statefile.File{State: s}
232232
var oldState bytes.Buffer

command/meta_backend_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1556,7 +1556,7 @@ func TestMetaBackend_planLocalStatePath(t *testing.T) {
15561556
// Create an alternate output path
15571557
statePath := "foo.tfstate"
15581558

1559-
// put a initial state there that needs to be backed up
1559+
// put an initial state there that needs to be backed up
15601560
err = (statemgr.NewFilesystem(statePath)).WriteState(original)
15611561
if err != nil {
15621562
t.Fatal(err)

communicator/communicator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type Communicator interface {
3535
// Upload is used to upload a single file
3636
Upload(string, io.Reader) error
3737

38-
// UploadScript is used to upload a file as a executable script
38+
// UploadScript is used to upload a file as an executable script
3939
UploadScript(string, io.Reader) error
4040

4141
// UploadDir is used to upload a directory

config/raw_config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ func TestRawConfig_implGob(t *testing.T) {
488488
var _ gob.GobEncoder = new(RawConfig)
489489
}
490490

491-
// verify that RawMap returns a identical copy
491+
// verify that RawMap returns an identical copy
492492
func TestNewRawConfig_rawMap(t *testing.T) {
493493
raw := map[string]interface{}{
494494
"foo": "${var.bar}",

configs/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type Config struct {
3232
//
3333
// This should only be used to display paths to the end-user in rare cases
3434
// where we are talking about the static module tree, before module calls
35-
// have been resolved. In most cases, a addrs.ModuleInstance describing
35+
// have been resolved. In most cases, an addrs.ModuleInstance describing
3636
// a node in the dynamic module tree is better, since it will then include
3737
// any keys resulting from evaluating "count" and "for_each" arguments.
3838
Path addrs.Module

helper/resource/state.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type StateChangeConf struct {
3838
// specified in the configuration using the specified Refresh() func,
3939
// waiting the number of seconds specified in the timeout configuration.
4040
//
41-
// If the Refresh function returns a error, exit immediately with that error.
41+
// If the Refresh function returns an error, exit immediately with that error.
4242
//
4343
// If the Refresh function returns a state other than the Target state or one
4444
// listed in Pending, return immediately with an error.

helper/schema/resource_diff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ func (d *ResourceDiff) Get(key string) interface{} {
367367
}
368368

369369
// GetChange gets the change between the state and diff, checking first to see
370-
// if a overridden diff exists.
370+
// if an overridden diff exists.
371371
//
372372
// This implementation differs from ResourceData's in the way that we first get
373373
// results from the exact levels for the new diff, then from state and diff as

internal/earlyconfig/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type Config struct {
3131
//
3232
// This should only be used to display paths to the end-user in rare cases
3333
// where we are talking about the static module tree, before module calls
34-
// have been resolved. In most cases, a addrs.ModuleInstance describing
34+
// have been resolved. In most cases, an addrs.ModuleInstance describing
3535
// a node in the dynamic module tree is better, since it will then include
3636
// any keys resulting from evaluating "count" and "for_each" arguments.
3737
Path addrs.Module

plugin/discovery/meta_set.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func (s PluginMetaSet) WithName(name string) PluginMetaSet {
6363
// WithVersion returns the subset of metas that have the given version.
6464
//
6565
// This should be used only with the "valid" result from ValidateVersions;
66-
// it will ignore any plugin metas that have a invalid version strings.
66+
// it will ignore any plugin metas that have invalid version strings.
6767
func (s PluginMetaSet) WithVersion(version Version) PluginMetaSet {
6868
ns := make(PluginMetaSet)
6969
for p := range s {

website/docs/commands/state/show.html.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The attributes are listed in alphabetical order (with the except of "id"
2323
which is always at the top). They are outputted in a way that is easy
2424
to parse on the command-line.
2525

26-
This command requires a address that points to a single resource in the
26+
This command requires an address that points to a single resource in the
2727
state. Addresses are
2828
in [resource addressing format](/docs/commands/state/addressing.html).
2929

0 commit comments

Comments
 (0)