From 82b4647b95261bfd41419486fedfcf65e6fbb4d0 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Mon, 2 Mar 2020 23:09:38 +0300 Subject: [PATCH] Update dc_truncate() comment --- src/dc_tools.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dc_tools.rs b/src/dc_tools.rs index 3175dccd9..0aa7bbeeb 100644 --- a/src/dc_tools.rs +++ b/src/dc_tools.rs @@ -19,8 +19,8 @@ pub(crate) fn dc_exactly_one_bit_set(v: i32) -> bool { 0 != v && 0 == v & (v - 1) } -/// Shortens a string to a specified length and adds "..." or "[...]" to the end of -/// the shortened string. +/// Shortens a string to a specified length and adds "[...]" to the +/// end of the shortened string. pub(crate) fn dc_truncate(buf: &str, approx_chars: usize) -> Cow { let ellipse = "[...]";