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

checker: fix error pos on default value (#6338)

This commit is contained in:
Daniel Däschle
2020-09-09 15:34:41 +02:00
committed by GitHub
parent 78e28a72ed
commit 3a146a6dbe
17 changed files with 56 additions and 43 deletions

View File

@ -207,9 +207,9 @@ pub struct BF_param {
len0 int = -1 // default len for whole the number or string
len1 int = 6 // number of decimal digits, if needed
positive bool = true // mandatory: the sign of the number passed
sign_flag bool = false // flag for print sign as prefix in padding
sign_flag bool // flag for print sign as prefix in padding
allign Align_text = .right // alignment of the string
rm_tail_zero bool = false // remove the tail zeros from floats
rm_tail_zero bool // remove the tail zeros from floats
}
pub fn format_str(s string, p BF_param) string {