3 ms·
This looks really cool! I think I found a few errors in the docs: 1. On https://hush-shell.github.io/intro/basic-constructs.html https://hush-shell.github.io/i
by pjungwir 4y ago
This looks really cool! I think I found a few errors in the docs:
1. On https://hush-shell.github.io/intro/basic-constructs.html https://hush-shell.github.io/intro/basic-constructs.html you say that `let x = array[5]` should panic, but the array has enough items. Perhaps you wrote that, then added more items to the array and forgot to change it?
2. On https://hush-shell.github.io/error-handling.html https://hush-shell.github.io/error-handling.html you sometimes have safe_div_mod and sometimes safe_division.
- francislavoie 4y agoI've already opened a pull request for the latter https://github.com/hush-shell/hush-shell.github.io/pull/1 https://github.com/hush-shell/hush-shell.github.io/pull/1
- 411111111111111 4y agoWouldn't the value of the fifth index be executed there, which is false and would hence fail? Not sure either though > safe_div_mod and sometimes safe_division Aren't those different things? Save division wouldn't use mod by default, right? The function for save division is missing though, but it might just be a built-in