[Mlir-commits] [mlir] 90a6c3c - [mlir] Fix typos in the Python bindings doc

Alex Zinenko llvmlistbot at llvm.org
Wed Oct 13 05:41:39 PDT 2021


Author: Alex Zinenko
Date: 2021-10-13T14:40:49+02:00
New Revision: 90a6c3c2e4d91ba081e553d7fe33c89ceacc9e4a

URL: https://github.com/llvm/llvm-project/commit/90a6c3c2e4d91ba081e553d7fe33c89ceacc9e4a
DIFF: https://github.com/llvm/llvm-project/commit/90a6c3c2e4d91ba081e553d7fe33c89ceacc9e4a.diff

LOG: [mlir] Fix typos in the Python bindings doc

Added: 
    

Modified: 
    mlir/docs/Bindings/Python.md

Removed: 
    


################################################################################
diff  --git a/mlir/docs/Bindings/Python.md b/mlir/docs/Bindings/Python.md
index 32914be7c4a1..71737753b5fa 100644
--- a/mlir/docs/Bindings/Python.md
+++ b/mlir/docs/Bindings/Python.md
@@ -352,8 +352,8 @@ with Context() as ctx, Location.file("f.mlir", line=42, col=1, context=ctx):
   pass
 ```
 
-Locations are owned by the context and maintain it live as long as they are
-(transitively) referenced from somewhere in Python code.
+Locations are owned by the context and live as long as they are (transitively)
+referenced from somewhere in Python code.
 
 Unlike locations, the insertion point may be left unspecified (or, equivalently,
 set to `None` or `False`) during operation construction. In this case, the
@@ -467,7 +467,7 @@ represented as either:
 
 Given an `Attribute` or `Type` object, one can obtain a concrete subclass using
 the constructor of the subclass. This may raise a `ValueError` if the attribute
-or type does not have the expected subclass:
+or type is not of the expected subclass:
 
 ```python
 from mlir.ir import Attribute, Type


        


More information about the Mlir-commits mailing list