Skip to content

Commit

Permalink
Fix a few miscellaneous typos (Unkown -> Unknown, Recieve -> Receive)
Browse files Browse the repository at this point in the history
Docker-DCO-1.0-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
  • Loading branch information
tianon committed Jan 8, 2014
1 parent 322a42b commit e525ad3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion container.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ type BindMap struct {
}

var (
ErrContainerStart = errors.New("The container failed to start. Unkown error")
ErrContainerStart = errors.New("The container failed to start. Unknown error")
ErrContainerStartTimeout = errors.New("The container failed to start due to timed out.")
ErrInvalidWorikingDirectory = errors.New("The working directory is invalid. It needs to be an absolute path.")
ErrConflictAttachDetach = errors.New("Conflicting options: -a and -d")
Expand Down
2 changes: 1 addition & 1 deletion contrib/host-integration/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func main() {

// Check that the requested process manager is supported
if _, exists := templates[*kind]; !exists {
panic("Unkown script template")
panic("Unknown script template")
}

// Load the requested template
Expand Down
6 changes: 3 additions & 3 deletions pkg/netlink/netlink_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func (s *NetlinkSocket) Send(request *NetlinkRequest) error {
return nil
}

func (s *NetlinkSocket) Recieve() ([]syscall.NetlinkMessage, error) {
func (s *NetlinkSocket) Receive() ([]syscall.NetlinkMessage, error) {
rb := make([]byte, syscall.Getpagesize())
nr, _, err := syscall.Recvfrom(s.fd, rb, 0)
if err != nil {
Expand Down Expand Up @@ -269,7 +269,7 @@ func (s *NetlinkSocket) HandleAck(seq uint32) error {

done:
for {
msgs, err := s.Recieve()
msgs, err := s.Receive()
if err != nil {
return err
}
Expand Down Expand Up @@ -500,7 +500,7 @@ func NetworkGetRoutes() ([]*net.IPNet, error) {

done:
for {
msgs, err := s.Recieve()
msgs, err := s.Receive()
if err != nil {
return nil, err
}
Expand Down

0 comments on commit e525ad3

Please sign in to comment.