aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2018-02-12 20:14:46 +0100
committerJokler <jokler.contact@gmail.com>2018-02-12 20:14:46 +0100
commitd761a8ad9650b4797a673230c2cc924235aafc98 (patch)
treec2b1c6fee82ca216927a2580a33bd889de8bf9f9 /src/lib.rs
parentda5c2c8e4893bfb095a8e2122b943c4dca61c41d (diff)
downloadfrippy-d761a8ad9650b4797a673230c2cc924235aafc98.tar.gz
frippy-d761a8ad9650b4797a673230c2cc924235aafc98.zip
Improve documentation
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 8a3a0d1..87c06c3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -59,7 +59,7 @@ pub struct Bot {
impl Bot {
/// Creates a `Bot`.
- /// By itself the bot only responds to a few simple ctcp commands
+ /// By itself the bot only responds to a few simple CTCP commands
/// defined per config file.
/// Any other functionality has to be provided by plugins
/// which need to implement [`Plugin`](plugin/trait.Plugin.html).
@@ -73,7 +73,7 @@ impl Bot {
Bot { plugins: ThreadedPlugins::new() }
}
- /// Adds the plugin.
+ /// Adds the [`Plugin`](plugin/trait.Plugin.html).
/// These plugins will be used to evaluate incoming messages from IRC.
///
/// # Examples
@@ -87,7 +87,7 @@ impl Bot {
self.plugins.add(plugin);
}
- /// Removes a plugin based on its name.
+ /// Removes a [`Plugin`](plugin/trait.Plugin.html) based on its name.
/// The binary currently uses this to disable plugins
/// based on user configuration.
///
@@ -103,12 +103,10 @@ impl Bot {
self.plugins.remove(name)
}
- /// This connects the `Bot` to IRC and creates a task on the `IrcReactor`
- /// which returns an Ok if the connection was cleanly closed and an Err
- /// if the connection was lostwhich returns an Ok if the connection was cleanly closed and an Err
- /// if the connection was lost.
+ /// This connects the `Bot` to IRC and creates a task on the [`IrcReactor`](../irc/client/reactor/struct.IrcReactor.html)
+ /// which returns an Ok if the connection was cleanly closed and an Err if the connection was lost.
///
- /// You need to run the `IrcReactor`, so that the `Bot`
+ /// You need to run the [`IrcReactor`](../irc/client/reactor/struct.IrcReactor.html), so that the `Bot`
/// can actually do its work.
///
/// # Examples