Skip to content

Commit

Permalink
Fix some typos in asdl_c.py (pythonGH-101757)
Browse files Browse the repository at this point in the history
  • Loading branch information
abel1502 authored Feb 10, 2023
1 parent 34c50ce commit 448c7d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Parser/asdl_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def reflow_c_string(s, depth):
def is_simple(sum_type):
"""Return True if a sum is a simple.
A sum is simple if it's types have no fields and itself
A sum is simple if its types have no fields and itself
doesn't have any attributes. Instances of these types are
cached at C level, and they act like singletons when propagating
parser generated nodes into Python level, e.g.
Expand Down Expand Up @@ -352,7 +352,7 @@ def visitSum(self, sum, name):
self.visit(t, name, sum.attributes)

def get_args(self, fields):
"""Return list of C argument into, one for each field.
"""Return list of C argument info, one for each field.
Argument info is 3-tuple of a C type, variable name, and flag
that is true if type can be NULL.
Expand Down

0 comments on commit 448c7d1

Please sign in to comment.