Skip to content

Commit b4a1f17

Browse files
committed
Fix typo in docs.
1 parent e077ba5 commit b4a1f17

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/source/intro.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ based on the intent.
7676
7777
def main():
7878
eff = greet()
79-
dispatcher = TypeDispatcher({ReadLine: perform_read_line})
80-
perform(dispatcher, effect)
79+
dispatcher = ComposedDispatcher([
80+
TypeDispatcher({ReadLine: perform_read_line}),
81+
base_dispatcher])
82+
perform(dispatcher, eff)
8183
8284
This has a number of advantages. First, your unit tests for ``get_user_name``
8385
become simpler. You don't need to mock out or parameterize the ``raw_input``

0 commit comments

Comments
 (0)