Skip to content

Commit

Permalink
docs: fix format of std.contents.parse signature
Browse files Browse the repository at this point in the history
  • Loading branch information
the-dipsy committed Sep 21, 2024
1 parent 90b0966 commit 9d01aad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/components-stdlib.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ and other fields.
## Parse content string into inline, path or URL value based on its format
```python
std.contents.parse(
content: str
content: str, # path, URL, or inline content as string
)
```

Expand Down
4 changes: 3 additions & 1 deletion stdlib/contents/parse.pyro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ returned as URL objects. Everything else will be returned as is.
- Remote file: `std.contents.parse("https://example.com/baz.txt")`
"""

(content: str)
(
content: str, # path, URL, or inline content as string
)

---

Expand Down

0 comments on commit 9d01aad

Please sign in to comment.