diff --git a/filters/parser.go b/filters/parser.go index acecc7328..c9b09847b 100644 --- a/filters/parser.go +++ b/filters/parser.go @@ -46,7 +46,7 @@ func Parse(s string) (Filter, error) { // ParseAll parses each filter in ss and returns a filter that will return true // if any filter matches the expression. // -// If no fitlers are provided, the filter will match anything. +// If no filters are provided, the filter will match anything. func ParseAll(ss ...string) (Filter, error) { if len(ss) == 0 { return Always, nil @@ -158,7 +158,7 @@ func (p *parser) fieldpath() ([]string, error) { fs := []string{f} loop: for { - tok := p.scanner.peek() // lookahead to consume field separtor + tok := p.scanner.peek() // lookahead to consume field separator switch tok { case '.': diff --git a/images/handlers.go b/images/handlers.go index fc9a066ea..452dd7cc5 100644 --- a/images/handlers.go +++ b/images/handlers.go @@ -164,7 +164,7 @@ func ChildrenHandler(provider content.Provider) HandlerFunc { // childless data types. return nil, nil default: - log.G(ctx).Warnf("encounted unknown type %v; children may not be fetched", desc.MediaType) + log.G(ctx).Warnf("encountered unknown type %v; children may not be fetched", desc.MediaType) } return descs, nil diff --git a/remotes/docker/schema1/converter.go b/remotes/docker/schema1/converter.go index 2cf882f7b..4459ce94f 100644 --- a/remotes/docker/schema1/converter.go +++ b/remotes/docker/schema1/converter.go @@ -336,7 +336,7 @@ type v1History struct { } `json:"container_config,omitempty"` } -// isEmptyLayer returns whether the v1 compability history describes an +// isEmptyLayer returns whether the v1 compatibility history describes an // empty layer. A return value of true indicates the layer is empty, // however false does not indicate non-empty. func isEmptyLayer(compatHistory []byte) (bool, error) { diff --git a/snapshot/snapshotter.go b/snapshot/snapshotter.go index a0e956d79..6bd1447ed 100644 --- a/snapshot/snapshotter.go +++ b/snapshot/snapshotter.go @@ -36,7 +36,7 @@ func (u *Usage) Add(other Usage) { u.Size += other.Size // TODO(stevvooe): assumes independent inodes, but provides and upper - // bound. This should be pretty close, assumming the inodes for a + // bound. This should be pretty close, assuming the inodes for a // snapshot are roughly unique to it. Don't trust this assumption. u.Inodes += other.Inodes } @@ -50,7 +50,7 @@ func (u *Usage) Add(other Usage) { // between a parent and its snapshot to generate a classic layer. // // An active snapshot is created by calling `Prepare`. After mounting, changes -// can be made to the snapshot. The act of commiting creates a committed +// can be made to the snapshot. The act of committing creates a committed // snapshot. The committed snapshot will get the parent of active snapshot. The // committed snapshot can then be used as a parent. Active snapshots can never // act as a parent.