Skip to content

Commit

Permalink
all: fix spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinburkesegment committed Dec 18, 2024
1 parent a4a080f commit 6ce77f0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ configuration values. It also has support for sub-commands on the command line,
which is a common approach used by CLI tools.

- **Supporting multiple sources**, because passing values through the command
line is not always the best appraoch, programs may need to receive their
line is not always the best approach, programs may need to receive their
configuration from files, environment variables, secret stores, or other network
locations.

Expand Down Expand Up @@ -195,7 +195,7 @@ Hello World!
Custom Sources
--------------

We mentionned the `conf.Loader` type supported setting custom sources that the
We mentioned the `conf.Loader` type supported setting custom sources that the
program configuration can be loaded from. Here's the the `conf.Source` interface
definition:
```go
Expand Down
2 changes: 1 addition & 1 deletion load.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var (
// configuration file if the -config-file option is present in the program
// arguments.
//
// Values found in the progrma arguments take precedence over those found in
// Values found in the program arguments take precedence over those found in
// the environment, which takes precedence over the configuration file.
//
// If an error is detected with the configurable the function print the usage
Expand Down
4 changes: 2 additions & 2 deletions node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func TestEqualNode(t *testing.T) {
},

{
name: "non-equal arrays (length mistmatch)",
name: "non-equal arrays (length mismatch)",
node1: Array{items: newArrayItems(
Scalar{reflect.ValueOf(1)},
Scalar{reflect.ValueOf(2)},
Expand Down Expand Up @@ -558,7 +558,7 @@ func Test_InvalidFlattenedEmbeddedStructs(t *testing.T) {
}()

makeNodeStruct(reflect.ValueOf(tt.val), reflect.TypeOf(tt.val))
t.Error("test should have paniced")
t.Error("test should have panicked")
})
}
}
6 changes: 3 additions & 3 deletions source.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
// make it possible to load configuration from new places.
//
// When the configuration is loaded the Load method of each source that was set
// on a loader is called with an Node representating the configuration struct.
// The typical implementation of a source is to load the serialized version of
// the configuration and use an objconv decoder to build the node.
// on a loader is called with a Node representing the configuration struct. The
// typical implementation of a source is to load the serialized version of the
// configuration and use an objconv decoder to build the node.
type Source interface {
Load(dst Map) error
}
Expand Down

0 comments on commit 6ce77f0

Please sign in to comment.