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

Commit

Permalink
Fixed typos/mispellings in comments and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
IRCody committed Feb 29, 2016
1 parent 821a1b4 commit 6fa4afd
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion control/control_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ func TestCollectMetrics(t *testing.T) {
So(pool.Strategy().String(), ShouldEqual, plugin.DefaultRouting.String())
So(len(pool.Plugins()), ShouldEqual, 2)
// when the first first plugin is hit the cache is populated the
// cache satifies the next 3 collect calls that come in within the
// cache satisfies the next 3 collect calls that come in within the
// cache duration
So(pool.Plugins()[1].HitCount(), ShouldEqual, 1)
So(pool.Plugins()[2].HitCount(), ShouldEqual, 0)
Expand Down
2 changes: 1 addition & 1 deletion control/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ var (
PingTimeoutLimit = 3

// Array matching plugin type enum to a string
// note: in string represenation we use lower case
// note: in string representation we use lower case
types = [...]string{
"collector",
"processor",
Expand Down
2 changes: 1 addition & 1 deletion control/strategy/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func (p *pool) SelectAP(taskID string) (SelectablePlugin, serror.SnapError) {
return sap, nil
}

// generatePID returns the next availble pid for the pool
// generatePID returns the next available pid for the pool
func (p *pool) generatePID() uint32 {
atomic.AddUint32(&p.pidCounter, 1)
return p.pidCounter
Expand Down
2 changes: 1 addition & 1 deletion core/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func TestRequestedPlugin(t *testing.T) {
So(err2, ShouldNotBeNil)
})
})
// Create a plugin request and try to add a signature from an non-existant signature file
// Create a plugin request and try to add a signature from an non-existent signature file

Convey("When passing in a non-existant signature file", t, func() {
rp3, err3 := NewRequestedPlugin(PluginPath)
Expand Down
4 changes: 2 additions & 2 deletions docs/REST_API.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# snap API
snap exposes a list of RESTful APIs to perform various actions. All of snap's API requests return `JSON`-formatted reponses, including errors. Any non-2xx HTTP status code may contain an error message. All API URLs listed in this documentation have the endpoint:
snap exposes a list of RESTful APIs to perform various actions. All of snap's API requests return `JSON`-formatted responses, including errors. Any non-2xx HTTP status code may contain an error message. All API URLs listed in this documentation have the endpoint:
> http://localhost:8181
## API Response Meta
Expand Down Expand Up @@ -160,7 +160,7 @@ _**Example Response**_
{
"meta": {
"code": 200,
"message": "Plugin successfuly unloaded (mock1v1)",
"message": "Plugin successfully unloaded (mock1v1)",
"type": "plugin_unloaded",
"version": 1
},
Expand Down

0 comments on commit 6fa4afd

Please sign in to comment.