Closed didibear closed 2 years ago
fn main() { let x: f32 = 10.0; let y: f32 = 10.; // <-- here }
fn main() { let x: f32 = 10.0; let y: f32 = 10; // <-- here }
Prettier should not remove the trailing . for floats because it is a valid syntax.
.
The expected format should either be 10. or 10.0.
10.
10.0
Input code
Output code
Additional context
Prettier should not remove the trailing
.
for floats because it is a valid syntax.The expected format should either be
10.
or10.0
.