diff --git a/README.rst b/README.rst index bca38f7..4e17108 100644 --- a/README.rst +++ b/README.rst @@ -73,7 +73,8 @@ Extended version of ``LocalFileSystem`` that also provides async methods. async def main(): fs = AsyncLocalFileSystem(auto_mkdir=False) - async with fs.open_async("foo", mode="w") as f: + f = await fs.open_async("foo", mode="w") + async with f: await f.write("foobar") content = await fs._cat("foo")