Skip to content

Commit 5cc2ed3

Browse files
deqiangccopybara-github
authored andcommitted
func needs to be replaced with func.func to fix the following compilation errors:
error: custom op 'func' is unknown (tried 'builtin.func' as well) PiperOrigin-RevId: 463257340
1 parent eff4baf commit 5cc2ed3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

documents/tutorial.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ in
1818
Create a file called `hello.mlir` with the following content:
1919

2020
```c++
21-
func @hello() {
21+
func.func @hello() {
2222
%chain = tfrt.new.chain
2323

2424
// Create a string containing "hello world" and store it in %hello.
@@ -99,7 +99,7 @@ arguments. We can add another function to `hello.mlir` by appending the
9999
following to `hello.mlir`:
100100

101101
```c++
102-
func @hello_integers() {
102+
func.func @hello_integers() {
103103
%chain = tfrt.new.chain
104104

105105
// Create an integer containing 42.

0 commit comments

Comments
 (0)