chore: fix function names in comment

Signed-off-by: findnature <cricis@aliyun.com>
This commit is contained in:
findnature
2024-04-24 12:07:38 +08:00
parent f82c7cefef
commit c681df35c0
5 changed files with 5 additions and 5 deletions

View File

@ -557,7 +557,7 @@ func WithShmDir(dir string) CtrCreateOption {
}
}
// WithNOShmMount tells libpod whether to mount /dev/shm
// WithNoShm tells libpod whether to mount /dev/shm
func WithNoShm(mount bool) CtrCreateOption {
return func(ctr *Container) error {
if ctr.valid {

View File

@ -105,7 +105,7 @@ func (r *Runtime) IsExternalContainerCallback(_ context.Context) libimage.IsExte
}
}
// newBuildEvent creates a new event based on completion of a built image
// newImageBuildCompleteEvent creates a new event based on completion of a built image
func (r *Runtime) newImageBuildCompleteEvent(idOrName string) {
e := events.NewEvent(events.Build)
e.Type = events.Image

View File

@ -996,7 +996,7 @@ func (s *SQLiteState) GetContainerExitCodeTimeStamp(id string) (*time.Time, erro
return &result, nil
}
// PruneExitCodes removes exit codes older than 5 minutes unless the associated
// PruneContainerExitCodes removes exit codes older than 5 minutes unless the associated
// container still exists.
func (s *SQLiteState) PruneContainerExitCodes() (defErr error) {
if !s.valid {