Skip to content

Commit

Permalink
Merge pull request #9559 from venthur/fix_spell
Browse files Browse the repository at this point in the history
fixed some spelling mistakes
  • Loading branch information
milas authored Jun 16, 2022
2 parents bec4ea4 + 8a5d555 commit 4ea3ba7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmd/compose/ps.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ SERVICES:
}

return formatter.Print(containers, opts.Format, os.Stdout,
writter(containers),
writer(containers),
"NAME", "COMMAND", "SERVICE", "STATUS", "PORTS")
}

func writter(containers []api.ContainerSummary) func(w io.Writer) {
func writer(containers []api.ContainerSummary) func(w io.Writer) {
return func(w io.Writer) {
for _, container := range containers {
ports := displayablePorts(container)
Expand Down
6 changes: 3 additions & 3 deletions pkg/compose/dependencies.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func getParents(v *Vertex) []*Vertex {
return v.GetParents()
}

// GetParents returns a slice with the parent vertexes of the a Vertex
// GetParents returns a slice with the parent vertices of the a Vertex
func (v *Vertex) GetParents() []*Vertex {
var res []*Vertex
for _, p := range v.Parents {
Expand All @@ -145,7 +145,7 @@ func getChildren(v *Vertex) []*Vertex {
return v.GetChildren()
}

// GetChildren returns a slice with the child vertexes of the a Vertex
// GetChildren returns a slice with the child vertices of the a Vertex
func (v *Vertex) GetChildren() []*Vertex {
var res []*Vertex
for _, p := range v.Children {
Expand Down Expand Up @@ -194,7 +194,7 @@ func (g *Graph) AddVertex(key string, service string, initialStatus ServiceStatu
g.Vertices[key] = v
}

// AddEdge adds a relationship of dependency between vertexes `source` and `destination`
// AddEdge adds a relationship of dependency between vertices `source` and `destination`
func (g *Graph) AddEdge(source string, destination string) error {
g.lock.Lock()
defer g.lock.Unlock()
Expand Down
2 changes: 1 addition & 1 deletion pkg/e2e/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ func Lines(output string) []string {
}

// HTTPGetWithRetry performs an HTTP GET on an `endpoint`, using retryDelay also as a request timeout.
// In the case of an error or the response status is not the expeted one, it retries the same request,
// In the case of an error or the response status is not the expected one, it retries the same request,
// returning the response body as a string (empty if we could not reach it)
func HTTPGetWithRetry(t testing.TB, endpoint string, expectedStatus int, retryDelay time.Duration, timeout time.Duration) string {
var (
Expand Down

0 comments on commit 4ea3ba7

Please sign in to comment.