mirror of
https://github.com/Dummi26/mers.git
synced 2025-03-10 05:43:53 +01:00
fixed small issue in readme
This commit is contained in:
parent
ce61749260
commit
c2362aca13
@ -209,7 +209,7 @@ You have to cover `[]/int` because the condition in the loop might not match for
|
||||
### Let's read a file!
|
||||
|
||||
file = fs_read(&args.get(0).assume1("please provided a text file to read!"))
|
||||
switch! {}
|
||||
switch! file {}
|
||||
|
||||
Since `get()` can fail, it returns `[]/[t]` where t is the type of elements in the list. To avoid handling the `[]` case, the `assume1()` builtin takes a `[]/[t]` and returns `t`. If the value is `[]`, it will cause a crash.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user