Skip to content

Commit

Permalink
docs: Fix various typos in comments (influxdata#12888)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi-jha authored Mar 21, 2023
1 parent bd5f6b7 commit e4cf290
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/AGGREGATORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This section is for developers who want to create a new aggregator plugin.
register themselves. See below for a quick example.
* To be available within Telegraf itself, plugins must register themselves
using a file in `github.com/influxdata/telegraf/plugins/aggregators/all`
named according to the plugin name. Make sure your also add build-tags to
named according to the plugin name. Make sure you also add build-tags to
conditionally build the plugin.
* Each plugin requires a file called `sample.conf` containing the sample configuration
for the plugin in TOML format.
Expand Down
2 changes: 1 addition & 1 deletion docs/INPUTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ and submit new inputs.
themselves. See below for a quick example.
- To be available within Telegraf itself, plugins must register themselves
using a file in `github.com/influxdata/telegraf/plugins/inputs/all` named
according to the plugin name. Make sure your also add build-tags to
according to the plugin name. Make sure you also add build-tags to
conditionally build the plugin.
- Each plugin requires a file called `sample.conf` containing the sample
configuration for the plugin in TOML format.
Expand Down
2 changes: 1 addition & 1 deletion docs/OUTPUTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ similar constructs.
themselves. See below for a quick example.
- To be available within Telegraf itself, plugins must register themselves
using a file in `github.com/influxdata/telegraf/plugins/outputs/all` named
according to the plugin name. Make sure your also add build-tags to
according to the plugin name. Make sure you also add build-tags to
conditionally build the plugin.
- Each plugin requires a file called `sample.conf` containing the sample
configuration for the plugin in TOML format.
Expand Down
2 changes: 1 addition & 1 deletion docs/PROCESSORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This section is for developers who want to create a new processor plugin.
themselves. See below for a quick example.
* To be available within Telegraf itself, plugins must register themselves
using a file in `github.com/influxdata/telegraf/plugins/processors/all`
named according to the plugin name. Make sure your also add build-tags to
named according to the plugin name. Make sure you also add build-tags to
conditionally build the plugin.
* Each plugin requires a file called `sample.conf` containing the sample
configuration for the plugin in TOML format.
Expand Down
2 changes: 1 addition & 1 deletion internal/limiter/limiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"time"
)

// NewRateLimiter returns a rate limiter that will will emit from the C
// NewRateLimiter returns a rate limiter that will emit from the C
// channel only 'n' times every 'rate' seconds.
func NewRateLimiter(n int, rate time.Duration) *rateLimiter {
r := &rateLimiter{
Expand Down
1 change: 0 additions & 1 deletion models/running_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ func (r *RunningOutput) ID() string {
}

// AddMetric adds a metric to the output.
//
// Takes ownership of metric
func (r *RunningOutput) AddMetric(metric telegraf.Metric) {
if ok := r.Config.Filter.Select(metric); !ok {
Expand Down
2 changes: 1 addition & 1 deletion plugins/inputs/riemann_listener/riemann_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (rsl *riemannListener) removeConnection(c net.Conn) {
/*
readMessages will read Riemann messages in binary format
from the TCP connection. byte Array p size will depend on the size
of the riemann message as sent by the cleint
of the riemann message as sent by the client
*/
func readMessages(r io.Reader, p []byte) error {
for len(p) > 0 {
Expand Down

0 comments on commit e4cf290

Please sign in to comment.