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

strconv: deprecate v_sprintf

This commit is contained in:
Alexander Medvednikov 2023-03-19 11:30:56 +03:00
parent c18bf48833
commit 7939ca2997

View File

@ -35,6 +35,7 @@ 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)