From d857e97d8ca6f9cacb5ab58eaf53afcbe461c647 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 16 Oct 2022 17:43:52 +0300 Subject: [PATCH] strconv: enable VTL compilation with -prod (remove deprecation for strconv.v_sprintf temporarily) --- vlib/strconv/vprintf.c.v | 1 - 1 file changed, 1 deletion(-) diff --git a/vlib/strconv/vprintf.c.v b/vlib/strconv/vprintf.c.v index 85b68a2fcb..134dbf9e2e 100644 --- a/vlib/strconv/vprintf.c.v +++ b/vlib/strconv/vprintf.c.v @@ -35,7 +35,6 @@ pub fn v_printf(str string, pt ...voidptr) { // x := 3.141516 // assert strconv.v_sprintf('aaa %G', x) == 'aaa 3.141516' // ``` -[deprecated: 'use string interpolation instead'] [direct_array_access; manualfree] pub fn v_sprintf(str string, pt ...voidptr) string { mut res := strings.new_builder(pt.len * 16)