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

strconv: enable VTL compilation with -prod (remove deprecation for strconv.v_sprintf temporarily)

This commit is contained in:
Delyan Angelov 2022-10-16 17:43:52 +03:00
parent 78e9362d74
commit d857e97d8c
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -35,7 +35,6 @@ pub fn v_printf(str string, pt ...voidptr) {
// x := 3.141516 // x := 3.141516
// assert strconv.v_sprintf('aaa %G', x) == 'aaa 3.141516' // assert strconv.v_sprintf('aaa %G', x) == 'aaa 3.141516'
// ``` // ```
[deprecated: 'use string interpolation instead']
[direct_array_access; manualfree] [direct_array_access; manualfree]
pub fn v_sprintf(str string, pt ...voidptr) string { pub fn v_sprintf(str string, pt ...voidptr) string {
mut res := strings.new_builder(pt.len * 16) mut res := strings.new_builder(pt.len * 16)