Skip to content

Commit

Permalink
docs improvement of Python binding (#2411)
Browse files Browse the repository at this point in the history
* docs: fix syntax error of python for oss

* docs: need to import opendal in quickstart example
  • Loading branch information
ideal authored Jun 4, 2023
1 parent 007aa5b commit 9b13ac6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions website/docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ async fn main() -> Result<()> {
### Python

```python
import opendal
import asyncio

async def main():
Expand Down
2 changes: 1 addition & 1 deletion website/docs/services/oss.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async function main() {
import opendal

op = opendal.Operator("oss",
root:"/path/to/dir",
root="/path/to/dir",
bucket="test",
endpoint="https://oss-cn-beijing.aliyuncs.com",
access_key_id="access_key_id",
Expand Down

0 comments on commit 9b13ac6

Please sign in to comment.