[Mlir-commits] [mlir] Fix typo in IRDL docs (PR #140460)

Fehr Mathieu llvmlistbot at llvm.org
Sun May 18 18:48:17 PDT 2025


================
@@ -634,7 +634,7 @@ def IRDL_AllOfOp : IRDL_ConstraintOp<"all_of",
     ```
 
     The above program defines a type `complex` inside the dialect `cmath` that
-    can has one parameter that must be 32-bit long and a float (in other
+    can have one parameter that must be 32-bit long and a float (in other
----------------
math-fehr wrote:

```suggestion
    has one parameter that must be 32-bit long and a float (in other
```
Actually, I think `has` would be better than `can have` here, because the parameter is required. Otherwise, readers might think that it is optional. What do you think?

https://github.com/llvm/llvm-project/pull/140460


More information about the Mlir-commits mailing list