strconv: some corrections of typos (#8302)

pull/8265/head
Adelar da Silva Queiróz 2021-01-23 19:00:31 -03:00 committed by GitHub
parent 1ea5cedd03
commit 1f99d1e025
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -227,12 +227,12 @@ f64 to string with string format
*/
// f32_to_str_l return a string with the f32 converted in a strign in decimal notation
// f32_to_str_l return a string with the f32 converted in a string in decimal notation
pub fn f32_to_str_l(f f64) string {
return f64_to_str_l(f32(f))
}
// f64_to_str_l return a string with the f64 converted in a strign in decimal notation
// f64_to_str_l return a string with the f64 converted in a string in decimal notation
pub fn f64_to_str_l(f f64) string {
s := f64_to_str(f,18)
@ -250,7 +250,7 @@ pub fn f64_to_str_l(f f64) string {
mut exp := 0
mut exp_sgn := 1
// get sign and deciaml parts
// get sign and decimal parts
for c in s {
if c == `-` {
sgn = -1