Merge pull request #20571 from sergkondr/fix_misspelling

fix misspelling
This commit is contained in:
Pam Selle 2019-08-13 17:13:13 -04:00 committed by GitHub
commit 9631e4c73d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View File

@ -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 // 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. // as a helper to wrap any potentially colored strings.
func (b *Local) Colorize() *colorstring.Colorize { func (b *Local) Colorize() *colorstring.Colorize {
if b.CLIColor != nil { if b.CLIColor != nil {

View File

@ -184,7 +184,7 @@ func (t *hcl2Configurable) Config() (*Config, error) {
// caller than then type-assert if desired to recover the individual // caller than then type-assert if desired to recover the individual
// diagnostics. // diagnostics.
// FIXME: The current API gives us no way to return warnings in the // FIXME: The current API gives us no way to return warnings in the
// absense of any errors. // absence of any errors.
return config, diags 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 // FIXME: The current API gives us no way to return warnings in the
// absense of any errors. // absence of any errors.
var err error var err error
if diags.HasErrors() { if diags.HasErrors() {
err = diags err = diags

View File

@ -21,11 +21,11 @@ type VariableTypeHint rune
//go:generate stringer -type VariableTypeHint //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 // ambiguous contexts will be treated as literal strings, as if TypeHintString
// were selected, but no runtime value checks will be applied. This is reasonable // 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 // 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. // ambiguous contexts.
const TypeHintNone VariableTypeHint = 0 const TypeHintNone VariableTypeHint = 0

View File

@ -34,7 +34,7 @@ type LocalState struct {
lockID string lockID string
// created is set to true if stateFileOut didn't exist before we created it. // 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. // hurt to remove file we never wrote to.
created bool created bool

View File

@ -179,7 +179,7 @@ func (h Hostname) GoString() string {
// If the port portion is invalid, the input string is returned verbatim along // If the port portion is invalid, the input string is returned verbatim along
// with a non-nil error. // 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. // If non-empty, the first character must be a colon.
func normalizePortPortion(s string) (string, error) { func normalizePortPortion(s string) (string, error) {
if s == "" { if s == "" {