summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 06b69c3..1e8712e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -411,7 +411,7 @@ pub struct InvalidContextError<F>(F);
 // ***** //
 
 impl<F> InvalidContextError<F> {
-    // TODO docs
+    /// Returns the closure wrapped within this error.
     pub fn get_closure(self) -> F {
         self.0
     }
@@ -1280,7 +1280,7 @@ impl<'ph> PluginHandle<'ph> {
 }
 
 impl<'a> EventAttrs<'a> {
-    // TODO docs
+    /// Creates a new `EventAttrs`.
     pub fn new() -> EventAttrs<'a> {
         EventAttrs {
             server_time: None,
@@ -1358,7 +1358,7 @@ impl<'a, 'ph: 'a> ValidContext<'a, 'ph> {
         }
     }
 
-    // TODO docs
+    /// Sends a list of modes to the current channel.
     pub fn send_modes<'b, I: IntoIterator<Item=&'b str>>(&mut self, iter: I, mpl: i32, sign: char, mode: char) {
         let ph = &self.ph;
         assert!(sign == '+' || sign == '-', "sign must be + or -");
@@ -1369,7 +1369,7 @@ impl<'a, 'ph: 'a> ValidContext<'a, 'ph> {
         let arr: &mut [*const c_char] = &mut *v2;
         unsafe {
             ph_call!(hexchat_send_modes(ph, arr.as_mut_ptr(), arr.len() as c_int,
-                mpl as c_int, sign as c_char, mode as c_char))
+                mpl as c_int, sign as c_char, mode as c_char));
         }
     }