diff --git a/cluster/event.go b/cluster/event.go index 553d495dfb..a29732f334 100644 --- a/cluster/event.go +++ b/cluster/event.go @@ -26,7 +26,7 @@ type EventHandlers struct { eventHandlers map[EventHandler]struct{} } -// NewEventHandlers returns a EventHandlers +// NewEventHandlers returns an EventHandlers func NewEventHandlers() *EventHandlers { return &EventHandlers{ eventHandlers: make(map[EventHandler]struct{}), diff --git a/cluster/mesos/task/tasks.go b/cluster/mesos/task/tasks.go index bfdd495b14..a1f0c7c301 100644 --- a/cluster/mesos/task/tasks.go +++ b/cluster/mesos/task/tasks.go @@ -32,7 +32,7 @@ func (t *Tasks) Add(task *Task) { } } -// Remove an Task from the tasks +// Remove a Task from the tasks func (t *Tasks) Remove(tasks ...*Task) { t.Lock() t.remove(tasks...) diff --git a/docs/discovery.md b/docs/discovery.md index 22b88878c2..330a41839b 100644 --- a/docs/discovery.md +++ b/docs/discovery.md @@ -107,7 +107,7 @@ store. You can use a static file or list of nodes for your discovery backend. The file must be stored on a host that is accessible from the Swarm manager. You can also pass a node list as an option when you start Swarm. -Both the static file and the `nodes` option support a IP address ranges. To specify a range supply a pattern, for example, `10.0.0.[10:200]` refers to nodes starting from `10.0.0.10` to `10.0.0.200`. For example for the `file` discovery method. +Both the static file and the `nodes` option support an IP address ranges. To specify a range supply a pattern, for example, `10.0.0.[10:200]` refers to nodes starting from `10.0.0.10` to `10.0.0.200`. For example for the `file` discovery method. $ echo "10.0.0.[11:100]:2375" >> /tmp/my_cluster $ echo "10.0.1.[15:20]:2375" >> /tmp/my_cluster diff --git a/docs/get-swarm.md b/docs/get-swarm.md index d88fdd551d..d03ca9e1c5 100644 --- a/docs/get-swarm.md +++ b/docs/get-swarm.md @@ -29,7 +29,7 @@ The first time you use any image, Docker Engine checks to see if you already hav 1. Open a terminal on a host running Engine. - If you are using Mac or Windows, then you must make sure you have started an Docker Engine host running and pointed your terminal environment to it with the Docker Machine commands. If you aren't sure, you can verify: + If you are using Mac or Windows, then you must make sure you have started a Docker Engine host running and pointed your terminal environment to it with the Docker Machine commands. If you aren't sure, you can verify: $ docker-machine ls NAME ACTIVE URL STATE URL SWARM DOCKER ERRORS diff --git a/docs/secure-swarm-tls.md b/docs/secure-swarm-tls.md index 034a91844f..cf291181b0 100644 --- a/docs/secure-swarm-tls.md +++ b/docs/secure-swarm-tls.md @@ -35,7 +35,7 @@ The following analogy may be useful. It is common practice that passports are used to verify an individual's identity. Passports usually contain a photograph and biometric information that identify the owner. A passport also lists the country that issued it, as well as *valid from* and *valid to* dates. Digital -certificates are very similar. The text below is an extract from a a digital +certificates are very similar. The text below is an extract from a digital certificate: ``` diff --git a/docs/swarm_at_scale/deploy-app.md b/docs/swarm_at_scale/deploy-app.md index 61882742e1..662369816e 100644 --- a/docs/swarm_at_scale/deploy-app.md +++ b/docs/swarm_at_scale/deploy-app.md @@ -39,7 +39,7 @@ on the Swarm `manager` instance. $ eval $(docker-machine env manager) ``` - You can create the network on an cluster node at the network is visible on + You can create the network on a cluster node at the network is visible on them all. 2. Create the `voteapp` container network.