[Mlir-commits] [mlir] [MLIR][NFC] Fix typo in addTypeAttributeConversion comment (PR #146977)
    llvmlistbot at llvm.org 
    llvmlistbot at llvm.org
       
    Thu Jul  3 17:06:45 PDT 2025
    
    
  
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir-core
Author: Xiaomin Liu (xl4624)
<details>
<summary>Changes</summary>
Typo in
```
This result can either contan an `Attribute`,
```
to
```
This result can either contain an `Attribute`,
```
rest is clang-format
---
Full diff: https://github.com/llvm/llvm-project/pull/146977.diff
1 Files Affected:
- (modified) mlir/include/mlir/Transforms/DialectConversion.h (+7-6) 
``````````diff
diff --git a/mlir/include/mlir/Transforms/DialectConversion.h b/mlir/include/mlir/Transforms/DialectConversion.h
index 81858812d2623..f6437657c9a93 100644
--- a/mlir/include/mlir/Transforms/DialectConversion.h
+++ b/mlir/include/mlir/Transforms/DialectConversion.h
@@ -221,12 +221,13 @@ class TypeConverter {
   ///
   /// The conversion functions take a non-null Type or subclass of Type and a
   /// non-null Attribute (or subclass of Attribute), and returns a
-  /// `AttributeConversionResult`. This result can either contan an `Attribute`,
-  /// which may be `nullptr`, representing the conversion's success,
-  /// `AttributeConversionResult::na()` (the default empty value), indicating
-  /// that the conversion function did not apply and that further conversion
-  /// functions should be checked, or `AttributeConversionResult::abort()`
-  /// indicating that the conversion process should be aborted.
+  /// `AttributeConversionResult`. This result can either contain an
+  /// `Attribute`, which may be `nullptr`, representing the conversion's
+  /// success, `AttributeConversionResult::na()` (the default empty value),
+  /// indicating that the conversion function did not apply and that further
+  /// conversion functions should be checked, or
+  /// `AttributeConversionResult::abort()` indicating that the conversion
+  /// process should be aborted.
   ///
   /// Registered conversion functions are callled in the reverse of the order in
   /// which they were registered.
``````````
</details>
https://github.com/llvm/llvm-project/pull/146977
    
    
More information about the Mlir-commits
mailing list