aboutsummaryrefslogtreecommitdiff
path: root/src/util/formatting/truncate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/formatting/truncate.rs')
-rw-r--r--src/util/formatting/truncate.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/formatting/truncate.rs b/src/util/formatting/truncate.rs
index c1b6257..80caa23 100644
--- a/src/util/formatting/truncate.rs
+++ b/src/util/formatting/truncate.rs
@@ -1,4 +1,5 @@
/// Truncates a string after a certain number of characters.
+///
/// Function always tries to truncate on a word boundary.
/// Reimplemented from gonzobot.
pub fn truncate(text: &str, len: usize) -> String {