Skip to content

Commit 7cbad23

Browse files
committed
chore: make function comment match function name
Signed-off-by: timesince <[email protected]>
1 parent 671b240 commit 7cbad23

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cmd/podman/common/create_opts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func LogDriver() string {
6969
return ""
7070
}
7171

72-
// DefineCreateDefault is used to initialize ctr create options before flag initialization
72+
// DefineCreateDefaults is used to initialize ctr create options before flag initialization
7373
func DefineCreateDefaults(opts *entities.ContainerCreateOptions) {
7474
opts.LogDriver = LogDriver()
7575
opts.CgroupsMode = cgroupConfig()

cmd/podman/containers/ps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ func (l psReporter) ImageID() string {
340340
return l.ListContainer.ImageID
341341
}
342342

343-
// Labels returns a map of the pod's labels
343+
// Label returns a map of the pod's labels
344344
func (l psReporter) Label(name string) string {
345345
return l.ListContainer.Labels[name]
346346
}

cmd/podman/parse/net.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var (
2828
domainRegexp = regexp.Delayed(`^(:?(:?[a-zA-Z0-9]|(:?[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]))(:?\.(:?[a-zA-Z0-9]|(:?[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])))*)\.?\s*$`)
2929
)
3030

31-
// validateExtraHost validates that the specified string is a valid extrahost and returns it.
31+
// ValidateExtraHost validates that the specified string is a valid extrahost and returns it.
3232
// ExtraHost is in the form of name1;name2;name3:ip where the ip has to be a valid ip (ipv4 or ipv6) or the special string HostGateway.
3333
// for add-host flag
3434
func ValidateExtraHost(val string) (string, error) {

libpod/container_internal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (c *Container) CheckpointPath() string {
136136
return filepath.Join(c.bundlePath(), metadata.CheckpointDirectory)
137137
}
138138

139-
// PreCheckpointPath returns the path to the directory containing the pre-checkpoint-images
139+
// PreCheckPointPath returns the path to the directory containing the pre-checkpoint-images
140140
func (c *Container) PreCheckPointPath() string {
141141
return filepath.Join(c.bundlePath(), preCheckpointDir)
142142
}

0 commit comments

Comments
 (0)