Function truncate

Source
pub fn truncate(lt: &str) -> &str
Expand description

This function trancated 1 last UTF8 character from the string.

§Arguments

  • lt - a string which is trucated

§Returns

  • A reference to the ctruncated string