const std = @import("std");
pub fn main() !void {
var buf: [32]u8 = undefined;
// bufPrint writes into buf and returns the used slice
const msg = try std.fmt.bufPrint(&buf, "item #{d}", .{7});
std.debug.print("{s}\n", .{msg});
}std.fmt.bufPrint needs no allocator