fix typo that's always bugging me

This commit is contained in:
Niko Matsakis 2021-10-27 07:15:07 -04:00
parent 0298163211
commit eb1e06d61d
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ impl<T> BlockingFuture<T> {
}
impl<T> Promise<T> {
pub(crate) fn fulfil(mut self, value: T) {
pub(crate) fn fulfill(mut self, value: T) {
self.fulfilled = true;
self.transition(State::Full(value));
}

View file

@ -780,7 +780,7 @@ where
// list, notify them that the value is available.
Some((new_value, ref cycle)) => {
for promise in waiting.into_inner() {
promise.fulfil(WaitResult {
promise.fulfill(WaitResult {
value: new_value.clone(),
cycle: cycle.clone(),
});