1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #3499 from tianon/typos

Fix a few miscellaneous typos (Unkown -> Unknown, Recieve -> Receive)
This commit is contained in:
Victor Vieux 2014-01-08 10:37:00 -08:00
commit 368e308971
3 changed files with 5 additions and 5 deletions

View file

@ -120,7 +120,7 @@ type BindMap struct {
} }
var ( 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.") 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.") ErrInvalidWorikingDirectory = errors.New("The working directory is invalid. It needs to be an absolute path.")
ErrConflictAttachDetach = errors.New("Conflicting options: -a and -d") ErrConflictAttachDetach = errors.New("Conflicting options: -a and -d")

View file

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

View file

@ -234,7 +234,7 @@ func (s *NetlinkSocket) Send(request *NetlinkRequest) error {
return nil return nil
} }
func (s *NetlinkSocket) Recieve() ([]syscall.NetlinkMessage, error) { func (s *NetlinkSocket) Receive() ([]syscall.NetlinkMessage, error) {
rb := make([]byte, syscall.Getpagesize()) rb := make([]byte, syscall.Getpagesize())
nr, _, err := syscall.Recvfrom(s.fd, rb, 0) nr, _, err := syscall.Recvfrom(s.fd, rb, 0)
if err != nil { if err != nil {
@ -269,7 +269,7 @@ func (s *NetlinkSocket) HandleAck(seq uint32) error {
done: done:
for { for {
msgs, err := s.Recieve() msgs, err := s.Receive()
if err != nil { if err != nil {
return err return err
} }
@ -500,7 +500,7 @@ func NetworkGetRoutes() ([]*net.IPNet, error) {
done: done:
for { for {
msgs, err := s.Recieve() msgs, err := s.Receive()
if err != nil { if err != nil {
return nil, err return nil, err
} }