chore: correct misspelled english words

This commit is contained in:
Alexandre Pujol 2024-07-05 16:00:54 +01:00
parent 120db25fc6
commit aa58062eb6
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 3 additions and 3 deletions

View File

@ -599,7 +599,7 @@ func (f *AppArmorProfileFile) parsePreamble(preamble string) error {
// Parse an apparmor profile file. // 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 // 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 // using antlr / participle. It is only used for experimental feature in the
// apparmor.d project. // apparmor.d project.

View File

@ -176,7 +176,7 @@ func (p *Path) IsAbs() bool {
return filepath.IsAbs(p.path) 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 { func (p *Path) ToAbs() error {
abs, err := filepath.Abs(p.path) abs, err := filepath.Abs(p.path)
if err != nil { if err != nil {
@ -552,7 +552,7 @@ func (p *Path) String() string {
// Canonical return a "canonical" Path for the given filename. // Canonical return a "canonical" Path for the given filename.
// The meaning of "canonical" is OS-dependent but the goal of this method // 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 // 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). // symlinks, drive volume letter case, etc).
func (p *Path) Canonical() *Path { func (p *Path) Canonical() *Path {
canonical := p.Clone() canonical := p.Clone()