diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2022-04-24 15:12:52 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2022-04-24 15:12:52 -0300 |
commit | 22ea3ac066b8c10dab1104a465fc7b182e65b7b2 (patch) | |
tree | 1b439da5b1ce3f4c56d2383657a86373ec6e99f0 /src | |
parent | 974ded9cc8d016cd18f22b2826dcac871ae2ad89 (diff) |
Add missing docs
Diffstat (limited to 'src')
-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 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)); } } |