From 8c7a3333f17bf3bfb6f403c93178ce2b742490f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 14 Oct 2024 14:38:44 +0200 Subject: [PATCH] Fix a docstring mentioning string values for integer config options --- crates/weechat/src/config/integer.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/weechat/src/config/integer.rs b/crates/weechat/src/config/integer.rs index b9677a3..f5ee330 100644 --- a/crates/weechat/src/config/integer.rs +++ b/crates/weechat/src/config/integer.rs @@ -94,7 +94,8 @@ impl IntegerOptionSettings { /// use weechat::config::IntegerOptionSettings; /// /// let settings = IntegerOptionSettings::new("server_buffer") - /// .string_values(vec!["independent", "merged"]) + /// .min(0) + /// .max(100) /// .set_change_callback(|weechat, option| { /// Weechat::print("Option changed"); /// });