]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix some typos in asdl_c.py (GH-101757)
authorabel1502 <32196516+abel1502@users.noreply.github.com>
Fri, 10 Feb 2023 03:10:46 +0000 (06:10 +0300)
committerGitHub <noreply@github.com>
Fri, 10 Feb 2023 03:10:46 +0000 (21:10 -0600)
Parser/asdl_c.py

index 3e307610b635f41451b1c67bf52af2bc28df908c..db0e597b7a5aa4681f811bc46501debf88eb8599 100755 (executable)
@@ -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.
@@ -352,7 +352,7 @@ class PrototypeVisitor(EmitVisitor):
                 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.