Fix spelling mistakes (#4888)

This commit is contained in:
Trevor Pounds
2018-10-19 14:12:01 -04:00
committed by Daniel Nelson
parent 1ec12ba6ad
commit 17360f079c
9 changed files with 13 additions and 13 deletions

View File

@@ -183,7 +183,7 @@ func escapeObject(m map[string]interface{}) (string, error) {
return `{` + strings.Join(pairs, ", ") + `}`, nil
}
// escapeString wraps s in the given quote string and replaces all occurences
// escapeString wraps s in the given quote string and replaces all occurrences
// of it inside of s with a double quote.
func escapeString(s string, quote string) string {
return quote + strings.Replace(s, quote, quote+quote, -1) + quote
@@ -191,7 +191,7 @@ func escapeString(s string, quote string) string {
// hashID returns a cryptographic hash int64 hash that includes the metric name
// and tags. It's used instead of m.HashID() because it's not considered stable
// and because a cryptogtaphic hash makes more sense for the use case of
// and because a cryptographic hash makes more sense for the use case of
// deduplication.
// [1] https://github.com/influxdata/telegraf/pull/3210#discussion_r148411201
func hashID(m telegraf.Metric) int64 {

View File

@@ -173,7 +173,7 @@ func (g *Graphite) send(batch []byte) error {
if _, e := g.conns[n].Write(batch); e != nil {
// Error
log.Println("E! Graphite Error: " + e.Error())
// Close explicitely
// Close explicitly
g.conns[n].Close()
// Let's try the next one
} else {

View File

@@ -220,7 +220,7 @@ func (c *httpClient) Database() string {
return c.database
}
// CreateDatabase attemps to create a new database in the InfluxDB server.
// CreateDatabase attempts to create a new database in the InfluxDB server.
// Note that some names are not allowed by the server, notably those with
// non-printable characters or slashes.
func (c *httpClient) CreateDatabase(ctx context.Context) error {