Skip to content

Commit d664f93

Browse files
wkingMa Shimiao
authored andcommitted
generate/generate: Fix "specifed" -> "specified" typo
And a "priviledge" -> "privilege" typo. Both turned up by Misspell [1] and reported by Go Report Card [2]. [1]: https://github.com/client9/misspell [2]: https://goreportcard.com/report/github.com/opencontainers/runtime-tools Backported to master from opencontainers#251 Signed-off-by: W. Trevor King <[email protected]> Signed-off-by: Ma Shimiao <[email protected]>
1 parent 389c73a commit d664f93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generate/generate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func NewFromSpec(spec *rspec.Spec) Generator {
158158
}
159159
}
160160

161-
// NewFromFile loads the template specifed in a file into a spec Generator.
161+
// NewFromFile loads the template specified in a file into a spec Generator.
162162
func NewFromFile(path string) (Generator, error) {
163163
cf, err := os.Open(path)
164164
if err != nil {
@@ -650,7 +650,7 @@ func (g *Generator) AddBindMount(source, dest, options string) {
650650
g.spec.Mounts = append(g.spec.Mounts, mnt)
651651
}
652652

653-
// SetupPrivileged sets up the priviledge-related fields inside g.spec.
653+
// SetupPrivileged sets up the privilege-related fields inside g.spec.
654654
func (g *Generator) SetupPrivileged(privileged bool) {
655655
if privileged {
656656
// Add all capabilities in privileged mode.

0 commit comments

Comments
 (0)