Skip to content

Commit

Permalink
[codespell] Fix typos. (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdosch committed May 2, 2023
1 parent de6baa5 commit 1288176
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions etree.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func newWriteSettings() WriteSettings {
}
}

// dup creates a dulicate of the WriteSettings object.
// dup creates a duplicate of the WriteSettings object.
func (s *WriteSettings) dup() WriteSettings {
return *s
}
Expand Down Expand Up @@ -1461,7 +1461,7 @@ func newProcInst(target, inst string, parent *Element) *ProcInst {
}

// CreateProcInst creates an XML processing instruction token with the
// sepcified 'target' and instruction 'inst'. It is then added as the last
// specified 'target' and instruction 'inst'. It is then added as the last
// child token of this element.
func (e *Element) CreateProcInst(target, inst string) *ProcInst {
return newProcInst(target, inst, e)
Expand Down
2 changes: 1 addition & 1 deletion path.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func (p *pather) traverse(e *Element, path Path) []*Element {
return p.results
}

// eval evalutes the current path node by applying the remaining
// eval evaluates the current path node by applying the remaining
// path's selector rules against the node's element.
func (p *pather) eval(n node) {
p.candidates = p.candidates[0:0]
Expand Down

0 comments on commit 1288176

Please sign in to comment.