fixed typo

This commit is contained in:
ashvin 2017-09-23 14:16:19 +05:30
parent ca421efda6
commit 927aee595b
5 changed files with 7 additions and 7 deletions

View File

@ -48,7 +48,7 @@ func (c *CORS) isOriginAllowed(origin string) (allowed bool) {
return return
} }
// generatePatterns generates regex expresions for AllowOrigins // generatePatterns generates regex expression for AllowOrigins
func (c *CORS) generatePatterns() { func (c *CORS) generatePatterns() {
if c.AllowOrigins != nil { if c.AllowOrigins != nil {
for _, origin := range c.AllowOrigins { for _, origin := range c.AllowOrigins {

View File

@ -97,7 +97,7 @@ func (s *DisplayBuffer) Clear() {
s.buffer = make([]byte, s.Size()) 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) { func (s *DisplayBuffer) Set(x, y, c int) {
idx := x + (y/ssd1306PageSize)*s.Width idx := x + (y/ssd1306PageSize)*s.Width
bit := uint(y) % ssd1306PageSize bit := uint(y) % ssd1306PageSize

View File

@ -135,7 +135,7 @@ func TestWiichuckDriverCButton(t *testing.T) {
select { select {
case <-done: case <-done:
case <-time.After(10 * time.Second): 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 { select {
case <-done: case <-done:
case <-time.After(10 * time.Second): 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 { select {
case <-done: case <-done:
case <-time.After(10 * time.Second): case <-time.After(10 * time.Second):
t.Errorf("Did not recieve 'Joystick' event") t.Errorf("Did not receive 'Joystick' event")
} }
} }

View File

@ -1,6 +1,6 @@
package gobot package gobot
// Event represents when something asyncronous happens in a Driver // Event represents when something asynchronous happens in a Driver
// or Adaptor // or Adaptor
type Event struct { type Event struct {
Name string Name string

View File

@ -13,7 +13,7 @@
then in a separate terminal run this program: then in a separate terminal run this program:
$ go run video.go $ 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 http://localhost:8090/bebop.mjpeg in a web browser. *NOTE* firefox works
best for viewing the video feed. best for viewing the video feed.
*/ */