From 53a5bf19f38df2463cb39da1d5d543021e51225f Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Sun, 25 Sep 2016 08:44:51 -0700 Subject: [PATCH] Slider example: initialize title --- examples/slider.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/slider.rs b/examples/slider.rs index 49b3f2d..9f2bbd8 100644 --- a/examples/slider.rs +++ b/examples/slider.rs @@ -19,6 +19,7 @@ fn main() { s.add_layer(Dialog::text(format!("Lucky number {}!", v)) .button("Ok", Cursive::quit)); })) + .title("[ 7 ]") .with_id("dialog")); siv.run();