From d664f93f25e5260d5754dd5376ef22849aea5ac3 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 14 Oct 2016 20:54:54 -0700 Subject: [PATCH] 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 #251 Signed-off-by: W. Trevor King Signed-off-by: Ma Shimiao --- generate/generate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.