@@ -127,13 +127,13 @@ struct Obligation {
127127 // / A token returned when an \c Obligation is fulfilled or failed. An \c
128128 // / Obligation is the only type that may construct fulfillment tokens.
129129 // /
130- // / \c FullfillmentToken prevents misuse of the \c Obligation
130+ // / \c FulfillmentToken prevents misuse of the \c Obligation
131131 // / structure by requiring its state to be changed along all program paths.
132- struct FullfillmentToken {
132+ struct FulfillmentToken {
133133 friend Obligation;
134134
135135 private:
136- FullfillmentToken () = default ;
136+ FulfillmentToken () = default ;
137137 };
138138
139139 // / An \c Obligation::Key is a reduced set of the common data contained in an
@@ -225,16 +225,16 @@ struct Obligation {
225225
226226public:
227227 bool isOwed () const { return state == State::Owed; }
228- FullfillmentToken fullfill () {
228+ FulfillmentToken fulfill () {
229229 assert (state == State::Owed &&
230230 " Cannot fulfill an obligation more than once!" );
231231 state = State::Fulfilled;
232- return FullfillmentToken {};
232+ return FulfillmentToken {};
233233 }
234- FullfillmentToken fail () {
234+ FulfillmentToken fail () {
235235 assert (state == State::Owed && " Cannot fail an obligation more than once!" );
236236 state = State::Failed;
237- return FullfillmentToken {};
237+ return FulfillmentToken {};
238238 }
239239};
240240
@@ -278,7 +278,7 @@ class DependencyVerifier {
278278 // / fail is called with the unmatched expectation value.
279279 void matchExpectationOrFail (
280280 ObligationMap &OM, const Expectation &expectation,
281- llvm::function_ref<Obligation::FullfillmentToken (Obligation &)> fulfill,
281+ llvm::function_ref<Obligation::FulfillmentToken (Obligation &)> fulfill,
282282 llvm::function_ref<void(const Expectation &)> fail) {
283283 auto entry = OM.find (Obligation::Key::forExpectation (expectation));
284284 if (entry == OM.end ()) {
@@ -440,13 +440,13 @@ bool DependencyVerifier::verifyObligations(
440440 case Expectation::Kind::Negative:
441441 llvm_unreachable (" Should have been handled above!" );
442442 case Expectation::Kind::Member:
443- return O.fullfill ();
443+ return O.fulfill ();
444444 case Expectation::Kind::PotentialMember:
445445 assert (O.getName ().empty ());
446- return O.fullfill ();
446+ return O.fulfill ();
447447 case Expectation::Kind::Provides:
448448 case Expectation::Kind::DynamicMember:
449- return O.fullfill ();
449+ return O.fulfill ();
450450 }
451451
452452 llvm_unreachable (" Unhandled expectation kind!" );
0 commit comments