Skip to content

Commit 840785f

Browse files
committed
chore: fix some minor issues in the comments
Signed-off-by: mountdisk <[email protected].>
1 parent 3553aa2 commit 840785f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/sync/tar.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func (a *ArchiveBuilder) writeEntry(entry archiveEntry) error {
229229
return nil
230230
}
231231

232-
// tarPath writes the given source path into tarWriter at the given dest (recursively for directories).
232+
// entriesForPath writes the given source path into tarWriter at the given dest (recursively for directories).
233233
// e.g. tarring my_dir --> dest d: d/file_a, d/file_b
234234
// If source path does not exist, quietly skips it and returns no err
235235
func (a *ArchiveBuilder) entriesForPath(localPath, containerPath string) ([]archiveEntry, error) {

pkg/compose/watch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ func loadDevelopmentConfig(service types.ServiceConfig, project *types.Project)
395395
return nil, fmt.Errorf("service %s doesn't have a build section, can't apply %s on watch", types.WatchActionRebuild, service.Name)
396396
}
397397
if trigger.Action == types.WatchActionSyncExec && len(trigger.Exec.Command) == 0 {
398-
return nil, fmt.Errorf("can't watch with action %q on service %s wihtout a command", types.WatchActionSyncExec, service.Name)
398+
return nil, fmt.Errorf("can't watch with action %q on service %s without a command", types.WatchActionSyncExec, service.Name)
399399
}
400400

401401
config.Watch[i] = trigger

0 commit comments

Comments
 (0)