Skip to content

Commit d76e0f4

Browse files
authored
Merge pull request moby#51872 from thaJeztah/api_fix_grammar
api: fix grammar: user defined / user specified -> user-(defined|specified)
2 parents a6d2595 + 26e8376 commit d76e0f4

File tree

2 files changed

+6
-6
lines changed
  • api/types/swarm
  • vendor/github.com/moby/moby/api/types/swarm

2 files changed

+6
-6
lines changed

api/types/swarm/task.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@ type Limit struct {
109109
Pids int64 `json:",omitempty"`
110110
}
111111

112-
// GenericResource represents a "user defined" resource which can
112+
// GenericResource represents a "user-defined" resource which can
113113
// be either an integer (e.g: SSD=3) or a string (e.g: SSD=sda1)
114114
type GenericResource struct {
115115
NamedResourceSpec *NamedGenericResource `json:",omitempty"`
116116
DiscreteResourceSpec *DiscreteGenericResource `json:",omitempty"`
117117
}
118118

119-
// NamedGenericResource represents a "user defined" resource which is defined
119+
// NamedGenericResource represents a "user-defined" resource which is defined
120120
// as a string.
121121
// "Kind" is used to describe the Kind of a resource (e.g: "GPU", "FPGA", "SSD", ...)
122122
// Value is used to identify the resource (GPU="UUID-1", FPGA="/dev/sdb5", ...)
@@ -125,7 +125,7 @@ type NamedGenericResource struct {
125125
Value string `json:",omitempty"`
126126
}
127127

128-
// DiscreteGenericResource represents a "user defined" resource which is defined
128+
// DiscreteGenericResource represents a "user-defined" resource which is defined
129129
// as an integer
130130
// "Kind" is used to describe the Kind of a resource (e.g: "GPU", "FPGA", "SSD", ...)
131131
// Value is used to count the resource (SSD=5, HDD=3, ...)

vendor/github.com/moby/moby/api/types/swarm/task.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)