Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #735 from ConnorDoyle/orthography
Browse files Browse the repository at this point in the history
Fixes typos in comments and literals.
  • Loading branch information
ConnorDoyle committed Feb 27, 2016
2 parents 5ccdefd + 79c9390 commit 821a1b4
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion control/plugin/cpolicy/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (c ConfigPolicyNode) Merge(n ctree.Node) ctree.Node {
// are safe to convert ctree.Node interface to ConfigPolicyNode
cd := n.(*ConfigPolicyNode)
// For the rules in the passed ConfigPolicyNode(converted) add each rule to
// this ConfigPolicyNode overwritting where needed.
// this ConfigPolicyNode overwriting where needed.
for _, r := range cd.rules {
c.Add(r)
}
Expand Down
2 changes: 1 addition & 1 deletion control/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ var (
// Timeout settings
// How much time must elapse before a lack of Ping results in a timeout
PingTimeoutDurationDefault = time.Millisecond * 1500
// How many succesive PingTimeouts must occur to equal a failure.
// How many successive PingTimeouts must occur to equal a failure.
PingTimeoutLimit = 3

// Array matching plugin type enum to a string
Expand Down
2 changes: 1 addition & 1 deletion control/strategy/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

// Package strategy provides basic interfaces for routing to availble
// Package strategy provides basic interfaces for routing to available
// plugins and caching metric data.
package strategy

Expand Down
2 changes: 1 addition & 1 deletion core/cdata/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (c ConfigDataNode) Merge(n ctree.Node) ctree.Node {
cd := n.(*ConfigDataNode)
t := cd.Table()
// For the table in the passed ConfigDataNode(converted) add each item to
// this ConfigDataNode overwritting where needed.
// this ConfigDataNode overwriting where needed.
for k, v := range t {
c.AddItem(k, v)
}
Expand Down
2 changes: 1 addition & 1 deletion core/ctypes/ctypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (c ConfigValueBool) MarshalJSON() ([]byte, error) {

// Returns a slice of string keywords for the types supported by ConfigValue.
func SupportedTypes() []string {
// This is kind of a hack but keeps the definiton of types here in
// This is kind of a hack but keeps the definition of types here in
// ctypes.go. If you create a new ConfigValue type be sure and add here
// to return the Type() response. This will cause any depedant components
// to acknowledge and use that type.
Expand Down
2 changes: 1 addition & 1 deletion core/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func TestRequestedPlugin(t *testing.T) {
})
// Try to create a plugin request from a bad path to a plugin
_, err2 := NewRequestedPlugin(PluginPath + "foo")
Convey("An error should be generated when creating a plugin request with non-existant path", t, func() {
Convey("An error should be generated when creating a plugin request with non-existent path", t, func() {
Convey("So error should not be nil", func() {
So(err2, ShouldNotBeNil)
})
Expand Down
2 changes: 1 addition & 1 deletion pkg/schedule/schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func waitOnInterval(last time.Time, i time.Duration) (uint, time.Time) {
nanoInterval := i.Nanoseconds()
// use modulo operation to obtain the remainder of time over last interval
remainder := timeDiff % nanoInterval
// substract remainder from
// subtract remainder from
missed := (timeDiff - remainder) / nanoInterval // timeDiff.Nanoseconds() % s.Interval.Nanoseconds()
waitDuration := nanoInterval - remainder
// Wait until predicted interval fires
Expand Down

0 comments on commit 821a1b4

Please sign in to comment.