From 2754dac394cf48b840d3085715a2ffd1c97afdee Mon Sep 17 00:00:00 2001 From: Jokler Date: Sun, 4 Mar 2018 01:46:11 +0100 Subject: Fix doctests --- src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 8cf1e2f..a740ec7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,9 +16,9 @@ //! let mut reactor = IrcReactor::new().unwrap(); //! let mut bot = Bot::new(); //! -//! bot.add_plugin(plugins::Help::new()); -//! bot.add_plugin(plugins::Emoji::new()); -//! bot.add_plugin(plugins::Currency::new()); +//! bot.add_plugin(plugins::help::Help::new()); +//! bot.add_plugin(plugins::emoji::Emoji::new()); +//! bot.add_plugin(plugins::currency::Currency::new()); //! //! bot.connect(&mut reactor, &config).unwrap(); //! reactor.run().unwrap(); @@ -101,7 +101,7 @@ impl Bot { /// use frippy::{plugins, Bot}; /// /// let mut bot = frippy::Bot::new(); - /// bot.add_plugin(plugins::Help::new()); + /// bot.add_plugin(plugins::help::Help::new()); /// ``` pub fn add_plugin(&mut self, plugin: T) { self.plugins.add(plugin); @@ -116,7 +116,7 @@ impl Bot { /// use frippy::{plugins, Bot}; /// /// let mut bot = frippy::Bot::new(); - /// bot.add_plugin(plugins::Help::new()); + /// bot.add_plugin(plugins::help::Help::new()); /// bot.remove_plugin("Help"); /// ``` pub fn remove_plugin(&mut self, name: &str) -> Option<()> { -- cgit v1.2.3-70-g09d2