Skip to content

Commit dfa6206

Browse files
committed
fix some comments (closes #3683)
1 parent ae5cc17 commit dfa6206

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

internal/css_parser/css_nesting.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func (p *parser) lowerNestingInRuleWithContext(rule css_ast.Rule, context *lower
190190
r.Selectors = []css_ast.ComplexSelector{merged}
191191
}
192192

193-
// Pass 2: Substitue "&" for the parent selector
193+
// Pass 2: Substitute "&" for the parent selector
194194
if !p.options.unsupportedCSSFeatures.Has(compat.IsPseudoClass) || len(context.parentSelectors) <= 1 {
195195
// If we can use ":is", or we don't have to because there's only one
196196
// parent selector, or we are using ":is()" to match zero parent selectors

internal/js_parser/js_parser.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8586,7 +8586,7 @@ func (p *parser) visitStmts(stmts []js_ast.Stmt, kind stmtsKind) []js_ast.Stmt {
85868586
for _, stmt := range before {
85878587
s, ok := stmt.Data.(*js_ast.SFunction)
85888588
if !ok {
8589-
// We may get non-function statements here in certain scenarious such as when "KeepNames" is enabled
8589+
// We may get non-function statements here in certain scenarios such as when "KeepNames" is enabled
85908590
nonFnStmts = append(nonFnStmts, stmt)
85918591
continue
85928592
}

internal/js_printer/js_printer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1545,7 +1545,7 @@ func (p *printer) printRequireOrImportExpr(importRecordIndex uint32, level js_as
15451545
defer p.printDotThenSuffix()
15461546
}
15471547

1548-
// Make sure the comma operator is propertly wrapped
1548+
// Make sure the comma operator is properly wrapped
15491549
if meta.ExportsRef != ast.InvalidRef && level >= js_ast.LComma {
15501550
p.print("(")
15511551
defer p.print(")")

internal/linker/linker.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3370,7 +3370,7 @@ type cssImportOrder struct {
33703370
// The only exception to this is "@layer". Evaluating a CSS file multiple
33713371
// times is sort of equivalent to evaluating it once at the first location
33723372
// as far as "@layer" is concerned. So we may in some cases keep both the
3373-
// first and and last locations and only write out the "@layer" information
3373+
// first and last locations and only write out the "@layer" information
33743374
// for the first location.
33753375
func (c *linkerContext) findImportedFilesInCSSOrder(entryPoints []uint32) (order []cssImportOrder) {
33763376
var visit func(uint32, []uint32, []css_ast.ImportConditions, []ast.ImportRecord)
@@ -3778,7 +3778,7 @@ func importConditionsAreEqual(a []css_ast.ImportConditions, b []css_ast.ImportCo
37783778
// For "lib.css", the entry with the conditions [supports(display: flex)] should
37793779
// make the entry with the conditions [supports(display: flex), screen] redundant.
37803780
//
3781-
// Note that all of this deliberately ignores the existance of "@layer" because
3781+
// Note that all of this deliberately ignores the existence of "@layer" because
37823782
// that is handled separately. All of this is only for handling unlayered styles.
37833783
func isConditionalImportRedundant(earlier []css_ast.ImportConditions, later []css_ast.ImportConditions) bool {
37843784
if len(later) > len(earlier) {

internal/resolver/yarnpnp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ func (r resolverQuery) resolveViaFallback(manifest *pnpData, ident string) (pnpI
370370
// Let referenceOrAlias be the entry from manifest.fallbackPool referenced by ident
371371
referenceOrAlias, ok = manifest.fallbackPool[ident]
372372

373-
// Return it immediatly, whether it's defined or not
373+
// Return it immediately, whether it's defined or not
374374
if r.debugLogs != nil {
375375
if ok {
376376
r.debugLogs.addNote(fmt.Sprintf(" Found fallback for %q in \"fallbackPool\": [%s, %s]", ident,

0 commit comments

Comments
 (0)