diff --git a/generate/generate.go b/generate/generate.go index bd8e4908b..3ebf13f29 100644 --- a/generate/generate.go +++ b/generate/generate.go @@ -158,7 +158,7 @@ func NewFromSpec(spec *rspec.Spec) Generator { } } -// NewFromFile loads the template specifed in a file into a spec Generator. +// NewFromFile loads the template specified in a file into a spec Generator. func NewFromFile(path string) (Generator, error) { cf, err := os.Open(path) if err != nil { @@ -650,7 +650,7 @@ func (g *Generator) AddBindMount(source, dest, options string) { g.spec.Mounts = append(g.spec.Mounts, mnt) } -// SetupPrivileged sets up the priviledge-related fields inside g.spec. +// SetupPrivileged sets up the privilege-related fields inside g.spec. func (g *Generator) SetupPrivileged(privileged bool) { if privileged { // Add all capabilities in privileged mode.