From 8716c68f55c5a1cd4dea5768a951cc4439f433ad Mon Sep 17 00:00:00 2001 From: RGBCube Date: Thu, 18 May 2023 22:10:50 +0300 Subject: [PATCH] Fix README example --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8afd68f..6792596 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,7 @@ const zterm = @import("zterm"); pub fn main() !void { var sp = zterm.Spinner{ - .charset = &[_][]const u8{"⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣷"}, - .finished_charset = "✓", + .charset = &[_][]const u8{ "⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣷" }, .message = "Selling all your data to the CCP...", }; try sp.start(); @@ -26,9 +25,10 @@ pub fn main() !void { sp.setMessage("Calculating very important stuff while selling your data..."); time.sleep(2 * time.ns_per_s); - sp.setMessage("Sold all your data successfully!"); - - try sp.stop(); + try sp.stop(.{ + .charset = "✓", + .message = "Successfully sold all your data to the CCP! You data is not in safe hands!", + }); } ```