Skip to content

Commit 0cb44fb

Browse files
authored
docs: Fix a few typos (scottrogowski#64)
There are small typos in: - code2flow/javascript.py - code2flow/php.py - code2flow/python.py - code2flow/ruby.py - tests/test_code/py/pytz/tzinfo.py Fixes: - Should read `cleaner` rather than `clearner`. - Should read `correct` rather than `corrent`. - Should read `ambiguous` rather than `ambigous`.
1 parent d357bc6 commit 0cb44fb

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

code2flow/javascript.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def get_acorn_version():
246246
class Javascript(BaseLanguage):
247247
@staticmethod
248248
def assert_dependencies():
249-
"""Assert that acorn is installed and the corrent version"""
249+
"""Assert that acorn is installed and the correct version"""
250250
assert is_installed('acorn'), "Acorn is required to parse javascript files " \
251251
"but was not found on the path. Install it " \
252252
"from npm and try again."
@@ -290,7 +290,7 @@ def separate_namespaces(tree):
290290
"""
291291
Given an AST, recursively separate that AST into lists of ASTs for the
292292
subgroups, nodes, and body. This is an intermediate step to allow for
293-
clearner processing downstream
293+
cleaner processing downstream
294294
295295
:param tree ast:
296296
:returns: tuple of group, node, and body trees. These are processed

code2flow/php.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def separate_namespaces(tree):
268268
"""
269269
Given a tree element, recursively separate that AST into lists of ASTs for the
270270
subgroups, nodes, and body. This is an intermediate step to allow for
271-
clearner processing downstream
271+
cleaner processing downstream
272272
273273
:param tree ast:
274274
:returns: tuple of group, node, and body trees. These are processed

code2flow/python.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def separate_namespaces(tree):
166166
"""
167167
Given an AST, recursively separate that AST into lists of ASTs for the
168168
subgroups, nodes, and body. This is an intermediate step to allow for
169-
clearner processing downstream
169+
cleaner processing downstream
170170
171171
:param tree ast:
172172
:returns: tuple of group, node, and body trees. These are processed

code2flow/ruby.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def separate_namespaces(tree):
231231
"""
232232
Given a tree element, recursively separate that AST into lists of ASTs for the
233233
subgroups, nodes, and body. This is an intermediate step to allow for
234-
clearner processing downstream
234+
cleaner processing downstream
235235
236236
:param tree ast:
237237
:returns: tuple of group, node, and body trees. These are processed

tests/test_code/py/pytz/tzinfo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def localize(self, dt, is_dst=False):
261261
This method should be used to construct localtimes, rather
262262
than passing a tzinfo argument to a datetime constructor.
263263
264-
is_dst is used to determine the correct timezone in the ambigous
264+
is_dst is used to determine the correct timezone in the ambiguous
265265
period at the end of daylight saving time.
266266
267267
>>> from pytz import timezone

0 commit comments

Comments
 (0)