fix 2 typos

Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
Victor Vieux 2016-02-09 22:50:29 -08:00
parent bb443b30b3
commit 208ce7d414
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ type ImageFilterOptions struct {
type Images []*Image
// Filter returns a new sequence of Images filtered to only the images that
// matched the filtering paramters
// matched the filtering parameters
func (images Images) Filter(opts ImageFilterOptions) Images {
includeAll := func(image *Image) bool {
// TODO: this is wrong if RepoTags == []

View File

@ -166,7 +166,7 @@ func (t *Task) Build(slaveID string, offers map[string]*mesosproto.Offer) {
t.SlaveId = &mesosproto.SlaveID{Value: &slaveID}
}
// NewTask fucntion creates a task
// NewTask function creates a task
func NewTask(config *cluster.ContainerConfig, name string, timeout time.Duration) (*Task, error) {
id := stringid.TruncateID(stringid.GenerateRandomID())