Skip to content

Commit f57a3a0

Browse files
authored
[mlir][docs] Fix return type in Type/Attr printer docs (#101958)
These return `void`, not `Type` or `Attribute` respectively.
1 parent 4c23c1b commit f57a3a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/docs/DefiningDialects/AttributesAndTypes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,13 +551,13 @@ For Types, these methods will have the form:
551551

552552
- `static Type MyType::parse(AsmParser &parser)`
553553

554-
- `Type MyType::print(AsmPrinter &p) const`
554+
- `void MyType::print(AsmPrinter &p) const`
555555

556556
For Attributes, these methods will have the form:
557557

558558
- `static Attribute MyAttr::parse(AsmParser &parser, Type attrType)`
559559

560-
- `Attribute MyAttr::print(AsmPrinter &p) const`
560+
- `void MyAttr::print(AsmPrinter &p) const`
561561

562562
#### Using `assemblyFormat`
563563

0 commit comments

Comments
 (0)