@@ -107,7 +107,7 @@ type ServiceConfig struct {
107107 // Command for the service containers.
108108 // If set, overrides COMMAND from the image.
109109 //
110- // Set to `[]` or `''` to clear the command from the image.
110+ // Set to `[]` or an empty string to clear the command from the image.
111111 Command ShellCommand `yaml:",omitempty" json:"command"` // NOTE: we can NOT omitempty for JSON! see ShellCommand type for details.
112112
113113 Configs []ServiceConfigObjConfig `yaml:",omitempty" json:"configs,omitempty"`
@@ -126,7 +126,7 @@ type ServiceConfig struct {
126126 // Entrypoint for the service containers.
127127 // If set, overrides ENTRYPOINT from the image.
128128 //
129- // Set to `[]` or `''` to clear the entrypoint from the image.
129+ // Set to `[]` or an empty string to clear the entrypoint from the image.
130130 Entrypoint ShellCommand `yaml:"entrypoint,omitempty" json:"entrypoint"` // NOTE: we can NOT omitempty for JSON! see ShellCommand type for details.
131131
132132 Environment MappingWithEquals `yaml:",omitempty" json:"environment,omitempty"`
@@ -333,13 +333,13 @@ type ThrottleDevice struct {
333333// ShellCommand is a string or list of string args.
334334//
335335// When marshaled to YAML, nil command fields will be omitted if `omitempty`
336- // is specified as a struct tag. Explicitly empty commands (i.e. `[]` or `''`)
337- // will serialize to an empty array (`[]`).
336+ // is specified as a struct tag. Explicitly empty commands (i.e. `[]` or
337+ // empty string will serialize to an empty array (`[]`).
338338//
339339// When marshaled to JSON, the `omitempty` struct must NOT be specified.
340340// If the command field is nil, it will be serialized as `null`.
341- // Explicitly empty commands (i.e. `[]` or `''` ) will serialize to an empty
342- // array (`[]`).
341+ // Explicitly empty commands (i.e. `[]` or empty string ) will serialize to
342+ // an empty array (`[]`).
343343//
344344// The distinction between nil and explicitly empty is important to distinguish
345345// between an unset value and a provided, but empty, value, which should be
0 commit comments