Add Dynamic::UNIT.
This commit is contained in:
@@ -94,7 +94,7 @@ The following _precedence table_ shows the built-in precedence of standard Rhai
|
||||
| ------------------- | :-------------------------------------------------------------------------------------: | :----------------: |
|
||||
| Assignments | `=`, `+=`, `-=`, `*=`, `/=`, `~=`, `%=`,<br/>`<<=`, `>>=`, `&=`, <code>\|=</code>, `^=` | 0 |
|
||||
| Logic and bit masks | <code>\|\|</code>, <code>\|</code>, `^` | 30 |
|
||||
| Logic and bit masks | `&`, `&&` | 60 |
|
||||
| Logic and bit masks | `&&`, `&` | 60 |
|
||||
| Comparisons | `==`, `!=` | 90 |
|
||||
| | `in` | 110 |
|
||||
| Comparisons | `>`, `>=`, `<`, `<=` | 130 |
|
||||
|
@@ -216,7 +216,7 @@ fn implementation_func(
|
||||
}
|
||||
}
|
||||
|
||||
Ok(().into())
|
||||
Ok(Dynamic::UNIT)
|
||||
}
|
||||
|
||||
// Register the custom syntax (sample): exec |x| -> { x += 1 } while x < 0;
|
||||
|
Reference in New Issue
Block a user