Skip to content

Commit 91d76f4

Browse files
committed
Update reference
1 parent fc5f534 commit 91d76f4

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

docs/reference.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Returns a record with all the functions exported by the module defined in file.
1919
### `fn len(list: List): Int`
2020
Returns the length of a list.
2121

22-
```python fn slice(list: List, start: Int, end: Int): List```
22+
### `fn slice(list: List, start: Int, end: Int): List`
2323
Returns a new list which is a slice of the list passed as argument, between index start and end.
2424

2525
## Module: `conv`
@@ -30,12 +30,15 @@ Returns a float by converting the string passed as argument.
3030
### `fn int(string: String): Int`
3131
Returns an int by converting the string passed as argument.
3232

33-
```python
34-
fn string(any: Any): String
35-
```
33+
### `fn string(any: Any): String`
3634
Returns a string by converting the type passed as argument into its string representation.
3735

3836
## Module: `env`
3937

4038
### `fn args(): List`
41-
Returns a list with all the command line arguments passed into the script.
39+
Returns a list with all the command line arguments passed into the script.
40+
41+
## Module: `http`
42+
43+
### `fn get(url: String): Record { error: Bool, value: String }`
44+
Returns a result record with a boolean error and the server response at url as a string.

0 commit comments

Comments
 (0)