Skip to content

Commit

Permalink
mediator pattern fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sammy-SC committed Jan 12, 2016
1 parent 0bf784c commit bb1eaba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ class MessageMediator: Mediator {
func send(message: String, colleague: Colleague) {
for c in colleagues {
if c !== colleague { //for simplicity we compare object references
colleague.receive(message)
c.receive(message)
}
}
}
Expand Down

0 comments on commit bb1eaba

Please sign in to comment.