diff --git a/patterns/behavioral/publish_subscribe.py b/patterns/behavioral/publish_subscribe.py index d9e2a7c42..698cf8d1d 100644 --- a/patterns/behavioral/publish_subscribe.py +++ b/patterns/behavioral/publish_subscribe.py @@ -65,7 +65,7 @@ def main(): >>> vani.subscribe("movie") >>> vani.unsubscribe("movie") - # Note that no one subscirbed to `ads` + # Note that no one subscribed to `ads` # and that vani changed their mind >>> fftv.publish("cartoon") diff --git a/patterns/structural/front_controller.py b/patterns/structural/front_controller.py index 02d6aecb0..9377fefeb 100644 --- a/patterns/structural/front_controller.py +++ b/patterns/structural/front_controller.py @@ -27,7 +27,7 @@ def dispatch(self, request): elif request.type == Request.tablet_type: self.tablet_view.show_index_page() else: - print("cant dispatch the request") + print("Cannot dispatch the request") class RequestController: @@ -69,7 +69,7 @@ def main(): Displaying tablet index page >>> front_controller.dispatch_request(Request('desktop')) - cant dispatch the request + Cannot dispatch the request >>> front_controller.dispatch_request('mobile') request must be a Request object