examples: transition from deprecated writer

This commit is contained in:
Mike Moseley 2025-09-16 21:30:05 -04:00 committed by Nikolas
parent 39ce5d4a8e
commit d64fc43f38

View File

@ -119,8 +119,8 @@ pub fn main() anyerror!void {
// Set the text (using markdown!) // Set the text (using markdown!)
var text = [_:0]u8{0} ** 64; var text = [_:0]u8{0} ** 64;
var fbs = std.io.fixedBufferStream(text[0..]); var fw = std.Io.Writer.fixed(text[0..]);
_ = try fbs.write("Hello ~~World~~ In 3D!"); _ = try fw.writeAll("Hello ~~World~~ In 3D!");
rl.disableCursor(); // Limit cursor to relative movement inside the window rl.disableCursor(); // Limit cursor to relative movement inside the window
rl.setTargetFPS(60); // Set our game to run at 60 frames-per-second rl.setTargetFPS(60); // Set our game to run at 60 frames-per-second