var to const when posssible
This commit is contained in:
parent
1b1d6b020b
commit
533c8e217d
16 changed files with 27 additions and 27 deletions
|
|
@ -43,7 +43,7 @@ pub fn main() void {
|
|||
//
|
||||
// We'll convert this weight from tons to kilograms at a
|
||||
// conversion of 907.18kg to the ton.
|
||||
var shuttle_weight: f16 = 907.18 * 2200;
|
||||
const shuttle_weight: f16 = 907.18 * 2200;
|
||||
|
||||
// By default, float values are formatted in scientific
|
||||
// notation. Try experimenting with '{d}' and '{d:.3}' to see
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue