Skip to content

Commit 71b9db2

Browse files
docs: integrate suggestions
Co-authored-by: Georg Schwarz <dev@georg-schwarz.com>
1 parent 6d1fe96 commit 71b9db2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

apps/docs/docs/user/value-types/primitive-value-types.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ valuetype GasFillLevel {
1212
}
1313
```
1414

15-
A _Property_ is a named "part" with its own _value type_ (type cycles are
15+
A _property_ is a named "part" with its own _value type_ (type cycles are
1616
forbidden). _Value types_ with multiple _properties_ are allowed in the
1717
language, but not yet supported by the interpreter.
1818

@@ -33,8 +33,11 @@ connected via a logical `AND` operation.
3333

3434
_Constraints_ use an _expression_ that evaluates to `true` or `false` and can
3535
reference every _property_ of the _value type_.
36+
3637
In the above example, `level >= 0 and level <= 100` is evaluated for each value
37-
of type `GasFillLevel`, `level` being replaced by that properties actual value.
38+
of type `GasFillLevel`. `level` serves as a variable here for the concrete
39+
value. For example, for the value `10`, the expression would evaluate to `true`,
40+
while it would evaluate to `false` for value `-1`.
3841

3942
Refer to the [expression documentation](../expressions.md) for further reading
4043
on _expressions_.

0 commit comments

Comments
 (0)