diff --git a/pkg/aa/parse.go b/pkg/aa/parse.go index 90286f4d..88808a37 100644 --- a/pkg/aa/parse.go +++ b/pkg/aa/parse.go @@ -599,7 +599,7 @@ func (f *AppArmorProfileFile) parsePreamble(preamble string) error { // Parse an apparmor profile file. // -// Warning: It is purposelly an uncomplete basic parser for apparmor profile, +// Warning: It is purposely an uncomplete basic parser for apparmor profile, // it is only aimed for internal tooling purpose. For "simplicity", it is not // using antlr / participle. It is only used for experimental feature in the // apparmor.d project. diff --git a/pkg/paths/paths.go b/pkg/paths/paths.go index a734d17e..b77adfa6 100644 --- a/pkg/paths/paths.go +++ b/pkg/paths/paths.go @@ -176,7 +176,7 @@ func (p *Path) IsAbs() bool { return filepath.IsAbs(p.path) } -// ToAbs transofrm the current Path to the corresponding absolute path +// ToAbs transform the current Path to the corresponding absolute path func (p *Path) ToAbs() error { abs, err := filepath.Abs(p.path) if err != nil { @@ -552,7 +552,7 @@ func (p *Path) String() string { // Canonical return a "canonical" Path for the given filename. // The meaning of "canonical" is OS-dependent but the goal of this method // is to always return the same path for a given file (factoring out all the -// possibile ambiguities including, for example, relative paths traversal, +// possible ambiguities including, for example, relative paths traversal, // symlinks, drive volume letter case, etc). func (p *Path) Canonical() *Path { canonical := p.Clone()