Skip to content

Commit b3ae373

Browse files
authored
Fix minor typo (#814)
1 parent c83b659 commit b3ae373

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/ast/ast.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1581,7 +1581,7 @@ func (node *NodeDefault) SubtreeFacts() SubtreeFacts {
15811581
}
15821582

15831583
func (node *NodeDefault) subtreeFactsWorker(self nodeData) SubtreeFacts {
1584-
// To avoid excessive conditonal checks, the default implementation of subtreeFactsWorker directly invokes
1584+
// To avoid excessive conditional checks, the default implementation of subtreeFactsWorker directly invokes
15851585
// computeSubtreeFacts. More complex nodes should implement CompositeNodeBase, which overrides this
15861586
// method to cache the result. `self` is passed along to ensure we lookup `computeSubtreeFacts` on the
15871587
// correct type, as `CompositeNodeBase` does not, itself, inherit from `Node`.

internal/checker/flow.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ func (c *Checker) getDiscriminantPropertyAccess(f *FlowState, expr *ast.Node, co
14191419
func (c *Checker) getCandidateDiscriminantPropertyAccess(f *FlowState, expr *ast.Node) *ast.Node {
14201420
switch {
14211421
case ast.IsBindingPattern(f.reference) || ast.IsFunctionExpressionOrArrowFunction(f.reference) || ast.IsObjectLiteralMethod(f.reference):
1422-
// When the reference is a binding pattern or function or arrow expression, we are narrowing a pesudo-reference in
1422+
// When the reference is a binding pattern or function or arrow expression, we are narrowing a pseudo-reference in
14231423
// getNarrowedTypeOfSymbol. An identifier for a destructuring variable declared in the same binding pattern or
14241424
// parameter declared in the same parameter list is a candidate.
14251425
if ast.IsIdentifier(expr) {

0 commit comments

Comments
 (0)