diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2018-09-29 23:50:58 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2018-09-29 23:50:58 -0300 |
commit | d6971a712f80be6dad6441b5610e84067d884ecd (patch) | |
tree | 90bb5ab293363fc42a95252c5f610472bf69ae88 /src/lib.rs | |
parent | 72ee2ee105e0fea4f4a1222419eaac809d3b5bd1 (diff) |
Tweak documentation to use the new PRI_* constants
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs index b89ead0..a9cd4df 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -46,7 +46,7 @@ //! ph.hook_command("hello-world", |ph, arg, arg_eol| { //! ph.print("Hello, World!"); //! hexchat_plugin::EAT_ALL -//! }, 0, Some("prints 'Hello, World!'")); +//! }, hexchat_plugin::PRI_NORM, Some("prints 'Hello, World!'")); //! true //! } //! } @@ -692,7 +692,7 @@ impl PluginHandle { /// ph.hook_command("hello-world", |ph, arg, arg_eol| { /// ph.print("Hello, World!"); /// hexchat_plugin::EAT_ALL - /// }, 0, Some("prints 'Hello, World!'")); + /// }, hexchat_plugin::PRI_NORM, Some("prints 'Hello, World!'")); /// } /// ``` pub fn hook_command<F>(&mut self, cmd: &str, cb: F, pri: i32, help: Option<&str>) -> CommandHookHandle where F: Fn(&mut PluginHandle, Word, WordEol) -> Eat + 'static + ::std::panic::RefUnwindSafe { @@ -741,7 +741,7 @@ impl PluginHandle { /// ph.print("We have message tags!?"); /// } /// hexchat_plugin::EAT_NONE - /// }, 0); + /// }, hexchat_plugin::PRI_NORM); /// } /// ``` pub fn hook_server<F>(&mut self, cmd: &str, cb: F, pri: i32) -> ServerHookHandle where F: Fn(&mut PluginHandle, Word, WordEol) -> Eat + 'static + ::std::panic::RefUnwindSafe { @@ -795,7 +795,7 @@ impl PluginHandle { /// } /// } /// hexchat_plugin::EAT_NONE - /// }, 0); + /// }, hexchat_plugin::PRI_NORM); /// } /// ``` pub fn hook_print<F>(&mut self, name: &str, cb: F, pri: i32) -> PrintHookHandle where F: Fn(&mut PluginHandle, Word) -> Eat + 'static + ::std::panic::RefUnwindSafe { |