diff --git a/api/cors.go b/api/cors.go index 3c1a60de..1f982ca8 100644 --- a/api/cors.go +++ b/api/cors.go @@ -48,7 +48,7 @@ func (c *CORS) isOriginAllowed(origin string) (allowed bool) { return } -// generatePatterns generates regex expresions for AllowOrigins +// generatePatterns generates regex expression for AllowOrigins func (c *CORS) generatePatterns() { if c.AllowOrigins != nil { for _, origin := range c.AllowOrigins { diff --git a/drivers/i2c/ssd1306_driver.go b/drivers/i2c/ssd1306_driver.go index 99d638e4..749244bc 100644 --- a/drivers/i2c/ssd1306_driver.go +++ b/drivers/i2c/ssd1306_driver.go @@ -97,7 +97,7 @@ func (s *DisplayBuffer) Clear() { s.buffer = make([]byte, s.Size()) } -// Set sets the x, y pixel witn c color +// Set sets the x, y pixel with c color func (s *DisplayBuffer) Set(x, y, c int) { idx := x + (y/ssd1306PageSize)*s.Width bit := uint(y) % ssd1306PageSize diff --git a/drivers/i2c/wiichuck_driver_test.go b/drivers/i2c/wiichuck_driver_test.go index ab09033f..ef7c34d4 100644 --- a/drivers/i2c/wiichuck_driver_test.go +++ b/drivers/i2c/wiichuck_driver_test.go @@ -135,7 +135,7 @@ func TestWiichuckDriverCButton(t *testing.T) { select { case <-done: case <-time.After(10 * time.Second): - t.Errorf("Did not recieve 'C' event") + t.Errorf("Did not receive 'C' event") } } @@ -158,7 +158,7 @@ func TestWiichuckDriverZButton(t *testing.T) { select { case <-done: case <-time.After(10 * time.Second): - t.Errorf("Did not recieve 'Z' event") + t.Errorf("Did not receive 'Z' event") } } @@ -186,7 +186,7 @@ func TestWiichuckDriverUpdateJoystick(t *testing.T) { select { case <-done: case <-time.After(10 * time.Second): - t.Errorf("Did not recieve 'Joystick' event") + t.Errorf("Did not receive 'Joystick' event") } } diff --git a/event.go b/event.go index dee8aa64..704b8d6e 100644 --- a/event.go +++ b/event.go @@ -1,6 +1,6 @@ package gobot -// Event represents when something asyncronous happens in a Driver +// Event represents when something asynchronous happens in a Driver // or Adaptor type Event struct { Name string diff --git a/platforms/parrot/bebop/client/examples/video.go b/platforms/parrot/bebop/client/examples/video.go index 3886857b..28bf56fa 100644 --- a/platforms/parrot/bebop/client/examples/video.go +++ b/platforms/parrot/bebop/client/examples/video.go @@ -13,7 +13,7 @@ then in a separate terminal run this program: $ go run video.go - You will then be able to view the video feed by navigatin to + You will then be able to view the video feed by navigation to http://localhost:8090/bebop.mjpeg in a web browser. *NOTE* firefox works best for viewing the video feed. */