You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a type does not include the unit of the value, the variable name has to. Otherwise it becomes hard to know what is what.
// The type expresses the unit. Best solution.let interval:Duration = Duration::from_millis(1001);// The variable expresses the unit. Good solution for when the type can't or should not express the unit.let interval_ms:u64 = 1001;// Neither expresses the unit. Very hard to read, understand and properly use:let interval:u64 = 1001;
The text was updated successfully, but these errors were encountered:
If a type does not include the unit of the value, the variable name has to. Otherwise it becomes hard to know what is what.
The text was updated successfully, but these errors were encountered: