From 845084c89de9ee4f77d91c72d8702da38b9aff62 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 3 Jun 2020 01:30:46 +0300 Subject: [PATCH] strconv: fix format_dec example --- vlib/strconv/format.v | 2 +- vlib/strconv/format_test.v | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/vlib/strconv/format.v b/vlib/strconv/format.v index 5941bc6df8..741492ae90 100644 --- a/vlib/strconv/format.v +++ b/vlib/strconv/format.v @@ -202,7 +202,7 @@ pub fn f64_to_str_lnd(f f64, dec_digit int) string { * Single format functions * ******************************************************************************/ -struct BF_param { +pub struct BF_param { pad_ch byte = ` ` // padding char len0 int = -1 // default len for whole the number or string len1 int = 6 // number of decimal digits, if needed diff --git a/vlib/strconv/format_test.v b/vlib/strconv/format_test.v index bf60bedd22..5eff53ac05 100644 --- a/vlib/strconv/format_test.v +++ b/vlib/strconv/format_test.v @@ -1,4 +1,3 @@ -import os import strconv fn test_format(){