aboutsummaryrefslogtreecommitdiff
path: root/ops/src/freq.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ops/src/freq.rs')
-rw-r--r--ops/src/freq.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/ops/src/freq.rs b/ops/src/freq.rs
index c5b363a..4a02d4c 100644
--- a/ops/src/freq.rs
+++ b/ops/src/freq.rs
@@ -1,3 +1,5 @@
+//! Per-nick word/line statistics
+
use ilc_base::{self, Context, Decode, Event};
use ilc_base::event::Type;
@@ -35,6 +37,9 @@ fn strip_nick_prefix(s: &str) -> &str {
}
// TODO: Don't print results, return Stats struct
+/// Return the `count` most active nicks, with lines, words and words per lines calculated.
+///
+/// `usize::MAX` is a good default if you don't want to cap the statistics.
pub fn freq(count: usize,
ctx: &Context,
input: &mut BufRead,