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

@ -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()