File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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
304304this representation is that every value must be uniquely represented. In other
305305words : a specific value must only be representable in one specific way. For example: there is only
306306one 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)])` .
308308Even 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`
310310(and is very complex to do, so it is unlikely anyone is tempted to do so).
311311
312312These 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