Skip to content

Commit 355b512

Browse files
authored
Merge pull request #361 from cclauss/patch-1
Fix typo discovered by codespell
2 parents f6adf63 + d8c0fd6 commit 355b512

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

patterns/behavioral/publish_subscribe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def main():
6565
>>> vani.subscribe("movie")
6666
>>> vani.unsubscribe("movie")
6767
68-
# Note that no one subscirbed to `ads`
68+
# Note that no one subscribed to `ads`
6969
# and that vani changed their mind
7070
7171
>>> fftv.publish("cartoon")

patterns/structural/front_controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def dispatch(self, request):
2727
elif request.type == Request.tablet_type:
2828
self.tablet_view.show_index_page()
2929
else:
30-
print("cant dispatch the request")
30+
print("Cannot dispatch the request")
3131

3232

3333
class RequestController:
@@ -69,7 +69,7 @@ def main():
6969
Displaying tablet index page
7070
7171
>>> front_controller.dispatch_request(Request('desktop'))
72-
cant dispatch the request
72+
Cannot dispatch the request
7373
7474
>>> front_controller.dispatch_request('mobile')
7575
request must be a Request object

0 commit comments

Comments
 (0)