Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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.
Expand Down