From 43e7a7b55222b8dff9b6742f99a60138597929d2 Mon Sep 17 00:00:00 2001 From: Sergey Kondrashov Date: Tue, 5 Mar 2019 16:12:52 +0300 Subject: [PATCH] fix misspelling --- backend/local/backend.go | 2 +- config/loader_hcl2.go | 4 ++-- configs/variable_type_hint.go | 4 ++-- state/local.go | 2 +- svchost/svchost.go | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/backend/local/backend.go b/backend/local/backend.go index 54cab6ecb..62c016c49 100644 --- a/backend/local/backend.go +++ b/backend/local/backend.go @@ -443,7 +443,7 @@ func (b *Local) ReportResult(op *backend.RunningOperation, diags tfdiags.Diagnos } // Colorize returns the Colorize structure that can be used for colorizing -// output. This is gauranteed to always return a non-nil value and so is useful +// output. This is guaranteed to always return a non-nil value and so is useful // as a helper to wrap any potentially colored strings. func (b *Local) Colorize() *colorstring.Colorize { if b.CLIColor != nil { diff --git a/config/loader_hcl2.go b/config/loader_hcl2.go index 4f9f129f2..c0b6f55c2 100644 --- a/config/loader_hcl2.go +++ b/config/loader_hcl2.go @@ -184,7 +184,7 @@ func (t *hcl2Configurable) Config() (*Config, error) { // caller than then type-assert if desired to recover the individual // diagnostics. // FIXME: The current API gives us no way to return warnings in the - // absense of any errors. + // absence of any errors. return config, diags } @@ -463,7 +463,7 @@ func (t *hcl2Configurable) Config() (*Config, error) { } // FIXME: The current API gives us no way to return warnings in the - // absense of any errors. + // absence of any errors. var err error if diags.HasErrors() { err = diags diff --git a/configs/variable_type_hint.go b/configs/variable_type_hint.go index 204efd120..458e75e14 100644 --- a/configs/variable_type_hint.go +++ b/configs/variable_type_hint.go @@ -21,11 +21,11 @@ type VariableTypeHint rune //go:generate stringer -type VariableTypeHint -// TypeHintNone indicates the absense of a type hint. Values specified in +// TypeHintNone indicates the absence of a type hint. Values specified in // ambiguous contexts will be treated as literal strings, as if TypeHintString // were selected, but no runtime value checks will be applied. This is reasonable // type hint for a module that is never intended to be used at the top-level -// of a configuration, since descendent modules never recieve values from +// of a configuration, since descendent modules never receive values from // ambiguous contexts. const TypeHintNone VariableTypeHint = 0 diff --git a/state/local.go b/state/local.go index 100feea1f..88cf2c7f5 100644 --- a/state/local.go +++ b/state/local.go @@ -34,7 +34,7 @@ type LocalState struct { lockID string // created is set to true if stateFileOut didn't exist before we created it. - // This is mostly so we can clean up emtpy files during tests, but doesn't + // This is mostly so we can clean up empty files during tests, but doesn't // hurt to remove file we never wrote to. created bool diff --git a/svchost/svchost.go b/svchost/svchost.go index 4eded142c..4060b767e 100644 --- a/svchost/svchost.go +++ b/svchost/svchost.go @@ -179,7 +179,7 @@ func (h Hostname) GoString() string { // If the port portion is invalid, the input string is returned verbatim along // with a non-nil error. // -// An empty string is a valid port portion representing the absense of a port. +// An empty string is a valid port portion representing the absence of a port. // If non-empty, the first character must be a colon. func normalizePortPortion(s string) (string, error) { if s == "" {