Skip to content

Commit bb1eaba

Browse files
committed
mediator pattern fix
1 parent 0bf784c commit bb1eaba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ class MessageMediator: Mediator {
354354
func send(message: String, colleague: Colleague) {
355355
for c in colleagues {
356356
if c !== colleague { //for simplicity we compare object references
357-
colleague.receive(message)
357+
c.receive(message)
358358
}
359359
}
360360
}

0 commit comments

Comments
 (0)