File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -304,9 +304,9 @@ The most important rule for
304
304
this representation is that every value must be uniquely represented. In other
305
305
words : a specific value must only be representable in one specific way. For example: there is only
306
306
one way to represent an array of two integers as a `ValTree` :
307
- ` ValTree:: Branch(&[ValTree:: Leaf(first_int), ValTree:: Leaf(second_int)])` .
307
+ ` Branch([ Leaf(first_int), Leaf(second_int)])` .
308
308
Even though theoretically a `[u32; 2]` could be encoded in a `u64` and thus just be a
309
- ` ValTree:: Leaf(bits_of_two_u32)` , that is not a legal construction of `ValTree`
309
+ ` Leaf(bits_of_two_u32)` , that is not a legal construction of `ValTree`
310
310
(and is very complex to do, so it is unlikely anyone is tempted to do so).
311
311
312
312
These rules also mean that some values are not representable. There can be no `union`s in type
You can’t perform that action at this time.
0 commit comments