From 838c61bef4671ac3a1d79551be48fc8609904b90 Mon Sep 17 00:00:00 2001 From: Benjamin Maxwell Date: Mon, 5 Aug 2024 10:36:15 +0000 Subject: [PATCH] [mlir][docs] Fix return type in Type/Attr printer docs These return `void`, not `Type` or `Attribute` respectively. --- mlir/docs/DefiningDialects/AttributesAndTypes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mlir/docs/DefiningDialects/AttributesAndTypes.md b/mlir/docs/DefiningDialects/AttributesAndTypes.md index d6941c0b681f8..1430edd2ffb02 100644 --- a/mlir/docs/DefiningDialects/AttributesAndTypes.md +++ b/mlir/docs/DefiningDialects/AttributesAndTypes.md @@ -551,13 +551,13 @@ For Types, these methods will have the form: - `static Type MyType::parse(AsmParser &parser)` -- `Type MyType::print(AsmPrinter &p) const` +- `void MyType::print(AsmPrinter &p) const` For Attributes, these methods will have the form: - `static Attribute MyAttr::parse(AsmParser &parser, Type attrType)` -- `Attribute MyAttr::print(AsmPrinter &p) const` +- `void MyAttr::print(AsmPrinter &p) const` #### Using `assemblyFormat`