readme claimed &statement was valid, but it isn't. now it correctly states that &varname must be used to get a reference.

This commit is contained in:
Dummi26 2023-04-19 16:16:34 +02:00
parent 2fc3d52626
commit 5bb4d2e4a5

View File

@ -391,7 +391,7 @@ Mers has the following builtin types:
- thread
+ a special type returned by the thread builtin. It is similar to JavaScript promises and can be awaited to get the value once it has finished computing. Reading the thread example is probably the best way to see how this works.
- reference
+ a mutable reference to a value. `&type` for the type and `&statement` for a reference value (usually `&varname`).
+ a mutable reference to a value. `&type` for the type and `&varname` for a reference value.
- enum
+ wraps any other value with a certain identifier.
+ the type is written as `enum(type)`: many builtins use `Err(String)` to report errors.