aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2018-03-04 01:46:11 +0100
committerJokler <jokler.contact@gmail.com>2018-03-04 01:46:11 +0100
commit2754dac394cf48b840d3085715a2ffd1c97afdee (patch)
tree0811ac4a1d8f8c1c938a33167b6910bd142bed67 /src/lib.rs
parent0c106cc7cec857805227760fd34a4c0f65fc1832 (diff)
downloadfrippy-2754dac394cf48b840d3085715a2ffd1c97afdee.tar.gz
frippy-2754dac394cf48b840d3085715a2ffd1c97afdee.zip
Fix doctests
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs10
1 files 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<T: Plugin + 'static>(&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<()> {