From 9d01aad0b3a17856e168a02c0dbf273714c4ad9c Mon Sep 17 00:00:00 2001 From: the-dipsy Date: Sat, 21 Sep 2024 22:32:22 +0200 Subject: [PATCH] docs: fix format of std.contents.parse signature --- docs/components-stdlib.md | 2 +- stdlib/contents/parse.pyro | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/components-stdlib.md b/docs/components-stdlib.md index 4905bf7..c442987 100644 --- a/docs/components-stdlib.md +++ b/docs/components-stdlib.md @@ -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 ) ``` diff --git a/stdlib/contents/parse.pyro b/stdlib/contents/parse.pyro index 57a4644..e4a3db6 100644 --- a/stdlib/contents/parse.pyro +++ b/stdlib/contents/parse.pyro @@ -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 +) ---