documentation fixes from @max-schaefer

Co-Authored-By: Max Schaefer <54907921+max-schaefer@users.noreply.github.com>
This commit is contained in:
Erik Krogh Kristensen
2019-12-10 12:01:51 +01:00
committed by GitHub
parent 59bafab6c3
commit e5d465da9a

View File

@@ -20,8 +20,8 @@ module EventEmitter {
}
/**
* An instanceof of the NodeJS EventEmitter class.
* Extend this class to mark something as being instanceof the EventEmitter class.
* An instance of the NodeJS EventEmitter class.
* Extend this class to mark something as being an instance of the EventEmitter class.
*/
abstract class EventEmitter extends DataFlow::Node {
/**
@@ -96,7 +96,7 @@ module EventEmitter {
/**
* Holds if this event dispatch can send an event to the given even registration.
* The default implementation is that the emitters of the dispatch and registration has to be equal.
* The default implementation is that the emitters of the dispatch and registration have to be equal.
*/
predicate canSendTo(EventRegistration destination) { this.getEmitter() = destination.getEmitter() }
}