[Mlir-commits] [mlir] 3957826 - Fix mlir trait documentation typo

Mehdi Amini llvmlistbot at llvm.org
Fri May 12 14:52:38 PDT 2023


Author: Jerry Ge
Date: 2023-05-12T22:52:23+01:00
New Revision: 39578264d0797fabb0d6dedaa7d1630ffbea6c9e

URL: https://github.com/llvm/llvm-project/commit/39578264d0797fabb0d6dedaa7d1630ffbea6c9e
DIFF: https://github.com/llvm/llvm-project/commit/39578264d0797fabb0d6dedaa7d1630ffbea6c9e.diff

LOG: Fix mlir trait documentation typo

Signed-off-by: Jerry Ge <jerry.ge at arm.com>
Change-Id: I922eeda95223da2c7da0653451e604651b7594bd

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D150487

Added: 
    

Modified: 
    mlir/docs/Traits.md

Removed: 
    


################################################################################
diff  --git a/mlir/docs/Traits.md b/mlir/docs/Traits.md
index d14a207b9fb9..27804194ffe8 100644
--- a/mlir/docs/Traits.md
+++ b/mlir/docs/Traits.md
@@ -73,7 +73,7 @@ class MyTrait : public OpTrait::TraitBase<ConcreteType, MyTrait> {
 public:
   /// Override the 'foldTrait' hook to support trait based folding on the
   /// concrete operation.
-  static OpFoldResult foldTrait(Operation *op, ArrayRef<Attribute> operands) { {
+  static OpFoldResult foldTrait(Operation *op, ArrayRef<Attribute> operands) {
     // ...
   }
 };
@@ -90,7 +90,7 @@ public:
   /// Override the 'foldTrait' hook to support trait based folding on the
   /// concrete operation.
   static LogicalResult foldTrait(Operation *op, ArrayRef<Attribute> operands,
-                                 SmallVectorImpl<OpFoldResult> &results) { {
+                                 SmallVectorImpl<OpFoldResult> &results) {
     // ...
   }
 };


        


More information about the Mlir-commits mailing list