Skip to content

Commit

Permalink
Fix docs details
Browse files Browse the repository at this point in the history
  • Loading branch information
Usbac committed Aug 1, 2021
1 parent c974006 commit 5c0ffbb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/en/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Keep in mind that there is not a consistent style used across the examples since
## Even or odd

```borealis
any num = Io.readln('Enter a number: ');
any num = Io.readLine('Enter a number: ');
if (num % 2 == 0) {
printLine('The number is even');
Expand Down Expand Up @@ -84,7 +84,7 @@ any listFiles(dir) {
}
}
any path = Io.readln('Enter a directory: ');
any path = Io.readLine('Enter a directory: ');
if (!Os.isDir(path)) {
printLine('Path is no a valid directory!');
Expand Down
2 changes: 1 addition & 1 deletion docs/en/stdlib/array.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Array.getSize([ 1, 2, 3, 4 ]); # Returns 4

### Push

`push(array array, any value)`
`push(array arr, any value)`

Pushes a new element at the end of the array.

Expand Down
2 changes: 1 addition & 1 deletion docs/en/stdlib/general.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ printLine(foo);
An optional argument can be given which is the condition required to run the REPL, meaning that the REPL will run only if the value evaluates to true.

```borealis
any foo = Io.readln();
any foo = Io.readLine();
debug(foo eq 'yes'); # The REPL will run only if the user entered 'yes'
```
Expand Down
2 changes: 1 addition & 1 deletion docs/en/stdlib/io.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Io.historyAdd('first command');

```borealis
Io.historyAdd('> prev command');
Io.readln('> '); # If the user presses the up arrow key, '> prev command' will appear
Io.readLine('> '); # If the user presses the up arrow key, '> prev command' will appear
```

It's pretty much what happens when you enter multiple commands in your terminal and then press the up arrow key.
Expand Down

0 comments on commit 5c0ffbb

Please sign in to comment.