Skip to content

Commit

Permalink
update example variable name (#729)
Browse files Browse the repository at this point in the history
aligns with the other examples
  • Loading branch information
kevinjqliu committed Apr 24, 2023
1 parent 5de8dd0 commit a7455f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ Simple locate and read a file:
.. code-block:: python
>>> import s3fs
>>> fs = s3fs.S3FileSystem(anon=True)
>>> fs.ls('my-bucket')
>>> s3 = s3fs.S3FileSystem(anon=True)
>>> s3.ls('my-bucket')
['my-file.txt']
>>> with fs.open('my-bucket/my-file.txt', 'rb') as f:
>>> with s3.open('my-bucket/my-file.txt', 'rb') as f:
... print(f.read())
b'Hello, world'
Expand Down

0 comments on commit a7455f9

Please sign in to comment.