From c80bbdb6603fa56852e9e9d6e9b42177fcdbe3a5 Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Thu, 26 Mar 2020 09:27:35 -0700 Subject: [PATCH] statsd: fix spelling errors --- statsd.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/statsd.go b/statsd.go index dd2f3c6..5340550 100644 --- a/statsd.go +++ b/statsd.go @@ -3,20 +3,20 @@ package statsd import ( "bufio" "fmt" - . "github.com/visionmedia/go-debug" "io" "math/rand" "net" "sync" "time" + + . "github.com/visionmedia/go-debug" ) var debug = Debug("statsd") const defaultBufSize = 512 -// Client is statsd client representing a -// onnection to a statsd server. +// Client is a statsd client representing a connection to a statsd server. type Client struct { conn net.Conn buf *bufio.Writer @@ -158,7 +158,7 @@ func (c *Client) Annotate(name string, value string, args ...interface{}) error return c.send(name, 1, "%s|a", fmt.Sprintf(value, args...)) } -// Unique records unique occurences of events. +// Unique records unique occurrences of events. func (c *Client) Unique(name string, value int, rate float64) error { return c.send(name, rate, "%d|s", value) }