Skip to content

Commit f13deda

Browse files
committed
Update README/doc
1 parent e150c93 commit f13deda

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ iterator = jsonl.load("file.jsonl")
5858
print(tuple(iterator))
5959

6060
# Load data from a URL
61-
iterator = jsonl.load("https://example.com")
61+
iterator = jsonl.load("https://example.com/file.jsonl")
6262
print(tuple(iterator))
6363
```
6464

docs/load.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ import urllib.request
8989
import jsonl
9090

9191
# Load data from a URL
92-
iterator = jsonl.load("https://example.com")
92+
iterator = jsonl.load("https://example.com/file.jsonl")
9393
print(tuple(iterator))
9494

9595
# Load data from a urllib request to handle custom requests
96-
req = urllib.request.Request("https://example.com", headers={"Accept": "application/jsonl"})
96+
req = urllib.request.Request("https://example.com/file.jsonl", headers={"Accept": "application/jsonl"})
9797
iterator = jsonl.load(req)
9898
print(tuple(iterator))
9999
```

0 commit comments

Comments
 (0)