Skip to content

Commit 8f51f4c

Browse files
committed
docs: Fix a few typos
There are small typos in: - effect/_base.py - effect/fold.py - effect/test_base.py - effect/test_parallel_performers.py Fixes: - Should read `synchronously` rather than `synchronusly`. - Should read `successful` rather than `succesful`. - Should read `success` rather than `succes`. - Should read `propagate` rather than `propogate`. - Should read `performance` rather than `peformance`.
1 parent df04e11 commit 8f51f4c

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

effect/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def catch(exc_type, callable):
163163
lambda exc: "got an error!"))
164164
165165
If any exception other than a ``SpecificException`` is thrown, it will be
166-
ignored by this handler and propogate further down the chain of callbacks.
166+
ignored by this handler and propagate further down the chain of callbacks.
167167
"""
168168

169169
def catcher(error):

effect/fold.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def sequence(effects):
7373
fails.
7474
"""
7575
# Could be: folder = lambda acc, el: acc + [el]
76-
# But, for peformance:
76+
# But, for performance:
7777
result = []
7878

7979
def folder(acc, el):

effect/test_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def test_performer_raises(self):
107107

108108
def test_success_propagates_effect_exception(self):
109109
"""
110-
If an succes callback is specified, but a exception result occurs,
110+
If an success callback is specified, but a exception result occurs,
111111
the exception is passed to the next callback.
112112
"""
113113
calls = []
@@ -124,7 +124,7 @@ def test_success_propagates_effect_exception(self):
124124

125125
def test_error_propagates_effect_result(self):
126126
"""
127-
If an error callback is specified, but a succesful result occurs,
127+
If an error callback is specified, but a successful result occurs,
128128
the success is passed to the next callback.
129129
"""
130130
calls = []

effect/test_parallel_performers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ParallelPerformerTestsMixin(object):
2121
def test_empty(self):
2222
"""
2323
When given an empty list of effects, ``perform_parallel_async`` returns
24-
an empty list synchronusly.
24+
an empty list synchronously.
2525
"""
2626
result = sync_perform(self.dispatcher, parallel([]))
2727
self.assertEqual(result, [])

0 commit comments

Comments
 (0)