1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

strconv: some corrections of typos (#8302)

This commit is contained in:
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

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