Skip to content

Commit afd8793

Browse files
committed
Update docs
1 parent c0ea5ef commit afd8793

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

docs/reference.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Explore the standard library functions available in GluonScript.
6060

6161
---
6262

63-
# Module: `core`
63+
## Module: `core`
6464

6565
## `fn append(list: List, element: Any): List`
6666

@@ -86,7 +86,7 @@ Returns a new list containing the elements of the input list between the specifi
8686

8787
---
8888

89-
# Module: `conv`
89+
## Module: `conv`
9090

9191
## `fn float(string: String): Float`
9292

@@ -106,23 +106,23 @@ Returns the string representation of the given value.
106106

107107
---
108108

109-
# Module: `env`
109+
## Module: `env`
110110

111111
## `fn args(): List`
112112

113113
Returns a list containing all command-line arguments passed to the script, in the order they were provided.
114114

115115
---
116116

117-
# Module: `http`
117+
## Module: `http`
118118

119119
## `fn get(url: String): Record { error: Bool, value: String }`
120120

121121
Performs an HTTP GET request to the specified URL and returns a result record. The `error` field indicates whether the request failed, and the `value` field contains either the response body or an error message.
122122

123123
---
124124

125-
# Module: `io`
125+
## Module: `io`
126126

127127
## `fn input(): String`
128128

@@ -142,15 +142,15 @@ Writes the string representation of each provided argument to standard output, f
142142

143143
---
144144

145-
# Module: `json`
145+
## Module: `json`
146146

147-
## `fn parse(json: String): Record`
147+
## `fn parse(json: String): Record { error: Bool, value: Record }`
148148

149-
Parses the given JSON string and returns a result record containing the parsed value. The record indicates whether parsing succeeded and includes either the resulting value or an error message.
149+
Parses the given JSON string and returns a result record. The `error` field indicates whether parsing failed, and the `value` field contains either the parsed JSON value as a record or an error message.
150150

151151
---
152152

153-
# Module: `strings`
153+
## Module: `strings`
154154

155155
## `fn join(list: List, sep: String): String`
156156

0 commit comments

Comments
 (0)