diff --git a/src/twisted/internet/defer.py b/src/twisted/internet/defer.py index 729cde7c986..e5321ab9905 100644 --- a/src/twisted/internet/defer.py +++ b/src/twisted/internet/defer.py @@ -403,8 +403,8 @@ def __init__( @param canceller: a callable used to stop the pending operation scheduled by this L{Deferred} when L{Deferred.cancel} is invoked. - The canceller will be passed the deferred whose cancelation is - requested (i.e., self). + The canceller will be passed the deferred whose cancellation is + requested (i.e., C{self}). If a canceller is not given, or does not invoke its argument's C{callback} or C{errback} method, L{Deferred.cancel} will @@ -586,7 +586,7 @@ def timeItOut() -> None: def convertCancelled(value: object) -> object: # if C{deferred} was timed out, call the translation function, - # if provdied, otherwise just use L{cancelledToTimedOutError} + # if provided, otherwise just use L{cancelledToTimedOutError} if timedOut[0]: toCall = onTimeoutCancel or _cancelledToTimedOutError return toCall(value, timeout)