Clarify newtype
This commit is contained in:
parent
d9eff8de8a
commit
b5122c52ae
@ -803,7 +803,7 @@ let id_int: int = *my_gizmo_id;
|
||||
~~~~
|
||||
|
||||
Types like this can be useful to differentiate between data that have
|
||||
the same type but must be used in different ways.
|
||||
the same underlying type but must be used in different ways.
|
||||
|
||||
~~~~
|
||||
struct Inches(int);
|
||||
|
Loading…
x
Reference in New Issue
Block a user