Skip to content

Commit 5ea7a06

Browse files
committed
RequirementMachine: Fix small typos
1 parent cc833d9 commit 5ea7a06

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

lib/AST/RequirementMachine/PropertyMap.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,6 @@ static bool unifyConcreteTypes(
379379
/// When a type parameter has two superclasses, we have to both unify the
380380
/// type constructor arguments, and record the most derived superclass.
381381
///
382-
///
383382
/// For example, if we have this setup:
384383
///
385384
/// class Base<T, T> {}
@@ -544,7 +543,7 @@ PropertyMap::~PropertyMap() {
544543
clear();
545544
}
546545

547-
/// Look for an property bag corresponding to a suffix of the given key.
546+
/// Look for a property bag corresponding to a suffix of the given key.
548547
///
549548
/// Returns nullptr if no information is known about this key.
550549
PropertyBag *
@@ -555,7 +554,7 @@ PropertyMap::lookUpProperties(const MutableTerm &key) const {
555554
return nullptr;
556555
}
557556

558-
/// Look for an property bag corresponding to the given key, creating a new
557+
/// Look for a property bag corresponding to the given key, creating a new
559558
/// property bag if necessary.
560559
///
561560
/// This must be called in monotonically non-decreasing key order.
@@ -567,7 +566,7 @@ PropertyMap::getOrCreateProperties(Term key) {
567566

568567
auto *props = new PropertyBag(key);
569568

570-
// Look for the longest suffix of the key that has an property bag,
569+
// Look for the longest suffix of the key that has a property bag,
571570
// recording it as the next property bag if we find one.
572571
//
573572
// For example, if our rewrite system contains the following three rules:
@@ -841,7 +840,7 @@ void PropertyMap::concretizeNestedTypesFromConcreteParent(
841840
}
842841
}
843842

844-
/// Given the key of an property bag known to have \p concreteType,
843+
/// Given the key of a property bag known to have \p concreteType,
845844
/// together with a \p typeWitness from a conformance on that concrete
846845
/// type, return the right hand side of a rewrite rule to relate
847846
/// \p subjectType with a term representing the type witness.

lib/AST/RequirementMachine/RewriteSystemCompletion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// completion.
1515
//
1616
// We use a variation of the Knuth-Bendix algorithm
17-
/// (https://en.wikipedia.org/wiki/Knuth–Bendix_completion_algorithm).
17+
// (https://en.wikipedia.org/wiki/Knuth–Bendix_completion_algorithm).
1818
//
1919
// The goal is to find 'overlapping' rules which would allow the same term to
2020
// be rewritten in two different ways. These two different irreducible

0 commit comments

Comments
 (0)