all: Fix typos in function names and comments

This commit is contained in:
Oleksandr Redko
2023-05-22 20:11:12 +03:00
committed by Bjørn Erik Pedersen
parent 12dc9a6e4a
commit 9009c8cdca
27 changed files with 41 additions and 41 deletions

View File

@@ -297,7 +297,7 @@ func extractFileTypePos(err error) (string, text.Position) {
}
// The error type from the minifier contains line number and column number.
if line, col := exctractLineNumberAndColumnNumber(err); line >= 0 {
if line, col := extractLineNumberAndColumnNumber(err); line >= 0 {
pos.LineNumber = line
pos.ColumnNumber = col
return fileType, pos
@@ -369,7 +369,7 @@ func extractOffsetAndType(e error) (int, string) {
}
}
func exctractLineNumberAndColumnNumber(e error) (int, int) {
func extractLineNumberAndColumnNumber(e error) (int, int) {
switch v := e.(type) {
case *parse.Error:
return v.Line, v.Column