1 2 3 4 5 6 7 8
use cow_utils::CowUtils; pub fn to_normal_comment(str: &str) -> String { if str.is_empty() { return String::new(); } format!("/* {} */", str.cow_replace("*/", "* /")) }