Skip to content

Commit d114c03

Browse files
authored
Ask-for-action docs missing await (#228)
When I copied and pasted this code, I got this error because the async function is missing an `await`.
1 parent a94c01f commit d114c03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api-reference/elements/pdf.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async def main():
4949
cl.Pdf(name="pdf1", display="inline", path="./pdf1.pdf", page=1)
5050
]
5151

52-
cl.Message(content="Look at this local pdf!", elements=elements).send()
52+
await cl.Message(content="Look at this local pdf!", elements=elements).send()
5353
```
5454

5555
### Side and Page

0 commit comments

Comments
 (0)